There was an error while loading. Please reload this page.
Here is a small test case, run phpcbf with PSR2 on it:
<?php namespace App\Repositories\DB; use Carbon\Carbon; use Domain\Shared\Metrics; abstract class BaseMetrics { public function computeMetrics() { if ($level == 'district') \DB::update(<<<EOD update District_Metrics inner join District on district_id = District.uid set name = district_name EOD ); } }
Adding { } around the if body fixes it
if