Completed
Push — dev ( 7529c4...0154aa )
by Zach
03:54
created
src/Models/ManagesPortfolio.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
     protected function setOrder(array $data)
120 120
     {
121 121
         return collect($data)->sortBy('order')
122
-            ->map(function ($item, $key) {
122
+            ->map(function($item, $key) {
123 123
                 $item['order'] = $key;
124 124
 
125 125
                 return $item;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      *
57 57
      * @param \Larafolio\Models\HasContent $model Model to delete.
58 58
      *
59
-     * @return bool
59
+     * @return boolean|null
60 60
      */
61 61
     protected function purgeModel(HasContent $model)
62 62
     {
Please login to merge, or discard this patch.
src/Http/Controllers/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        $this->middleware(function ($request, $next) {
27
+        $this->middleware(function($request, $next) {
28 28
             $this->user = Auth::user();
29 29
 
30 30
             return $next($request);
Please login to merge, or discard this patch.
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/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 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      *
55 55
      * @param string $name Name of image to get.
56 56
      *
57
-     * @return \Larafolio\Models\Image|null
57
+     * @return \Illuminate\Database\Eloquent\Model|null
58 58
      */
59 59
     public function image($name)
60 60
     {
Please login to merge, or discard this patch.
src/Http/ViewComposers/GlobalComposer.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
         $pages = $user ? Page::all() : collect([]);
24 24
 
25 25
         $view->with('navProjects', $projects)
26
-             ->with('navPages', $pages);
26
+                ->with('navPages', $pages);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-Route::group(['middleware' => ['web', 'admin']], function () {
3
+Route::group(['middleware' => ['web', 'admin']], function() {
4 4
     Route::get('/manager', 'Larafolio\Http\Controllers\PortfolioController@index')->name('dashboard');
5 5
 
6 6
     Route::patch('/manager', 'Larafolio\Http\Controllers\PortfolioController@update')->name('update-portfolio');
Please login to merge, or discard this patch.