Passed
Push — master ( 26caeb...0e28f7 )
by Thomas
11:18
created
app/Http/Controllers/CourseController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function search()
41 41
     {
42
-        return QueryBuilder::for(Course::class)->where('campus_id', 1)
42
+        return QueryBuilder::for(Course::class) {
43
+            ->where('campus_id', 1)
43 44
         ->with('room')->withCount('events')->withCount('children')->withCount('enrollments')
44 45
         ->allowedFilters([
45 46
             'name',
@@ -49,6 +50,7 @@  discard block
 block discarded – undo
49 50
             AllowedFilter::exact('teacher_id'),
50 51
         ])
51 52
         ->get();
53
+        }
52 54
     }
53 55
 
54 56
     public function redirectToUserPreferredView()
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/StudentCrudController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,8 +226,7 @@
 block discarded – undo
226 226
         ], fn () => LeadType::all()->pluck('name', 'id')->toArray(), function ($value) {
227 227
             if ($value === '4') {
228 228
                 $this->crud->query = $this->crud->query->where('lead_type_id', $value)->orWhere('lead_type_id', null);
229
-            }
230
-            else {
229
+            } else {
231 230
                 $this->crud->addClause('where', 'lead_type_id', $value);
232 231
             }
233 232
         });
Please login to merge, or discard this patch.