Completed
Push — dev ( 5de273...f717ea )
by Zach
06:43 queued 02:05
created
src/Http/ImageFilters/Medium.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 300, function (Constraint $constraint) {
20
+        return $image->resize(null, 300, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Http/ImageFilters/Thumbnail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 80, function (Constraint $constraint) {
20
+        return $image->resize(null, 80, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Http/ImageFilters/Small.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function applyFilter(Image $image)
19 19
     {
20
-        return $image->resize(null, 150, function (Constraint $constraint) {
20
+        return $image->resize(null, 150, function(Constraint $constraint) {
21 21
             $constraint->aspectRatio();
22 22
         });
23 23
     }
Please login to merge, or discard this patch.
src/Models/Traits/HasBlocks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @param string $name Name of text block to get.
43 43
      *
44
-     * @return Larafolio\Models\TextBlock
44
+     * @return \Illuminate\Database\Eloquent\Model|null
45 45
      */
46 46
     public function block($name)
47 47
     {
Please login to merge, or discard this patch.
src/Models/Traits/HasImages.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @param string $name Name of image to get.
43 43
      *
44
-     * @return Larafolio\Models\Image|null
44
+     * @return \Illuminate\Database\Eloquent\Model|null
45 45
      */
46 46
     public function image($name)
47 47
     {
Please login to merge, or discard this 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/Traits/HasLinks.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      *
42 42
      * @param string $name Name of link to get.
43 43
      *
44
-     * @return Larafolio\Models\Link|null
44
+     * @return \Illuminate\Database\Eloquent\Model|null
45 45
      */
46 46
     public function link($name)
47 47
     {
Please login to merge, or discard this patch.
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.