Completed
Push — dev ( 5de273...f717ea )
by Zach
06:43 queued 02:05
created
src/Models/Project.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
     {
66 66
         parent::boot();
67 67
 
68
-        static::creating(function (Project $project) {
68
+        static::creating(function(Project $project) {
69 69
             $project->setSlug('name');
70 70
         });
71 71
 
72
-        static::updating(function (Project $project) {
72
+        static::updating(function(Project $project) {
73 73
             $project->setSlug('name');
74 74
         });
75 75
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         if ($group) {
153 153
             return $query->get()
154
-                ->each(function ($project, $key) {
154
+                ->each(function($project, $key) {
155 155
                     $project->index = $key;
156 156
                 })
157 157
                 ->groupBy('type');
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
      */
372 372
     public function scopeOrderRelationship($query, $relationship)
373 373
     {
374
-        return $query->with([$relationship => function ($query) {
374
+        return $query->with([$relationship => function($query) {
375 375
             $query->orderBy('order');
376 376
         }]);
377 377
     }
Please login to merge, or discard this patch.