diff --git a/app/Http/Controllers/AnnReportController.php b/app/Http/Controllers/AnnReportController.php index 7a31cce9ae75837c5b0c01bad1164620298fea5b..29fd5971e97a2559e798203fa3a13ad7bf931ae9 100644 --- a/app/Http/Controllers/AnnReportController.php +++ b/app/Http/Controllers/AnnReportController.php @@ -44,12 +44,14 @@ public function mammContExp(): View foreach ($mammMachines as $m) { // Get the two most recent survey dates $recent = $m->testdate->whereIn('type_id', [1, 2])->sortByDesc('test_date')->take(2); - if ($recent->count() == 0) continue; // Machine has no test dates, skip it + if ($recent->count() == 0) { + continue; + } // Machine has no test dates, skip it $mammDates[$m->description] = [ 'location' => $m->location->location, 'date1' => $recent->pop()->test_date, 'date2' => ($recent->count() == 1) ? $recent->pop()->test_date : '', - ]; + ]; } /** @@ -65,12 +67,14 @@ public function mammContExp(): View foreach ($sbbMachines as $m) { // Get the two most recent survey dates $recent = $m->testdate->whereIn('type_id', [1, 2])->sortByDesc('test_date')->take(2); - if ($recent->count() == 0) continue; // Machine has no test dates, skip it. + if ($recent->count() == 0) { + continue; + } // Machine has no test dates, skip it. $sbbDates[$m->description] = [ 'location' => $m->location->location, 'date1' => $recent->pop()->test_date, 'date2' => ($recent->count() == 1) ? $recent->pop()->test_date : '', - ]; + ]; } return view('ar.cexp', [