Passed
Push — master ( 282fd3...f886da )
by Jonathan
12:39 queued 14s
created
app/Console/Commands/GenerateUuidCacheCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             $modelClass = $module->model_class;
53 53
 
54 54
             $query = Entity::where('module_id', $module->id)
55
-                ->whereNotIn('record_id', function ($query) use ($modelClass) {
55
+                ->whereNotIn('record_id', function($query) use ($modelClass) {
56 56
                     $query->select('id')
57 57
                         ->from((new $modelClass)->getTable())
58 58
                         ->get();
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $modelClass = $module->model_class;
74 74
             $count = $modelClass::count();
75 75
             $cpt = 0;
76
-            $modelClass::chunkById(300, function ($records) use (&$cpt, $count) {
76
+            $modelClass::chunkById(300, function($records) use (&$cpt, $count) {
77 77
                 $this->comment($cpt.'/'.$count);
78 78
                 foreach ($records as $record) {
79 79
                     $record->uuid; // Automaticaly generate cache (see \Uccello\Core\Support\Traits\UccelloModule getUuidAttribute())
Please login to merge, or discard this patch.