Completed
Push — dev ( 1b2c72...d03be0 )
by Zach
03:53
created
src/Models/HasContent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@  discard block
 block discarded – undo
53 53
     {
54 54
         parent::boot();
55 55
 
56
-        static::creating(function (Model $model) {
56
+        static::creating(function(Model $model) {
57 57
             $model->setSlug('name');
58 58
         });
59 59
 
60
-        static::updating(function (Model $model) {
60
+        static::updating(function(Model $model) {
61 61
             $model->setSlug('name');
62 62
         });
63 63
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         if ($group) {
85 85
             return $query->get()
86
-                ->each(function (Model $model, $key) {
86
+                ->each(function(Model $model, $key) {
87 87
                     $model->index = $key;
88 88
                 })
89 89
                 ->groupBy('type');
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function scopeOrderRelationship($query, $relationship)
152 152
     {
153
-        return $query->with([$relationship => function ($query) {
153
+        return $query->with([$relationship => function($query) {
154 154
             $query->orderBy('order');
155 155
         }]);
156 156
     }
Please login to merge, or discard this patch.
src/Models/ContentTraits/HasImages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     public function imagesWithProps()
106 106
     {
107 107
         return $this->images
108
-            ->map(function (Image $image) {
108
+            ->map(function(Image $image) {
109 109
                 return $image->generateProps();
110 110
             })->reverse()->values();
111 111
     }
Please login to merge, or discard this patch.
src/Models/Project.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 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
     }
Please login to merge, or discard this patch.