Completed
Push — master ( a59a4f...85c920 )
by claudio
06:18
created
app/Console/Commands/MeetingsList.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,12 +47,12 @@
 block discarded – undo
47 47
 
48 48
     private static function withFilter()
49 49
     {
50
-        return ['groups' => function ($query) {
50
+        return [ 'groups' => function($query) {
51 51
             $query->select('id', 'company_id');
52
-        }, 'groups.meetings' => function ($query) {
52
+        }, 'groups.meetings' => function($query) {
53 53
             $query->select('id', 'group_id', 'start_time');
54
-        }, 'groups.meetings.employees' => function ($query) {
54
+        }, 'groups.meetings.employees' => function($query) {
55 55
             $query->select('id');
56
-        }];
56
+        } ];
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,11 @@
 block discarded – undo
39 39
     {
40 40
         //
41 41
         $companyId = $this->argument('companyId');
42
-        if (is_numeric($companyId))
43
-            print_r(Company::findOrFail($companyId)->with(self::withFilter())->get()->toArray());
44
-        else
45
-            print_r(Company::with(self::withFilter())->select('id')->get()->toArray());
42
+        if (is_numeric($companyId)) {
43
+                    print_r(Company::findOrFail($companyId)->with(self::withFilter())->get()->toArray());
44
+        } else {
45
+                    print_r(Company::with(self::withFilter())->select('id')->get()->toArray());
46
+        }
46 47
     }
47 48
 
48 49
     private static function withFilter()
Please login to merge, or discard this patch.