Completed
Push — dev ( 6cbc8e...6a1339 )
by Zach
03:24
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   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * Add a blocks and links to model.
16 16
      *
17
-     * @param Larafolio\Models\HasContent $model Model to add extras to.
17
+     * @param HasContent $model Model to add extras to.
18 18
      * @param array                       $data  Array of posted user data.
19 19
      *
20
-     * @return Larafolio\Models\HasContent
20
+     * @return HasContent
21 21
      */
22 22
     protected function addModelExtras(HasContent $model, array $data)
23 23
     {
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * Update a HasContent model and its children.
37 37
      *
38
-     * @param Larafolio\Models\HasContent $model Model to update.
38
+     * @param HasContent $model Model to update.
39 39
      * @param array                       $data  Array of posted user data.
40 40
      *
41
-     * @return Larafolio\Models\HasContent
41
+     * @return HasContent
42 42
      */
43 43
     protected function updateModel(HasContent $model, array $data)
44 44
     {
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Permanently delete a model.
56 56
      *
57
-     * @param Larafolio\Models\HasContent $model Model to delete.
57
+     * @param 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
     {
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Add a text block to a model.
91 91
      *
92
-     * @param Larafolio\Models\HasContent $model     Model to add text block to.
92
+     * @param HasContent $model     Model to add text block to.
93 93
      * @param array                       $blockData Array of text block data.
94 94
      *
95
-     * @return Larafolio\Models\HasContent
95
+     * @return Model
96 96
      */
97 97
     public function addBlockToModel(HasContent $model, array $blockData)
98 98
     {
@@ -102,10 +102,10 @@  discard block
 block discarded – undo
102 102
     /**
103 103
      * Update a text block.
104 104
      *
105
-     * @param Larafolio\Models\TextBlock $textBlock Text block to update.
105
+     * @param TextBlock $textBlock Text block to update.
106 106
      * @param array                      $blockData Array of text block data.
107 107
      *
108
-     * @return Larafolio\Models\TextBlock
108
+     * @return TextBlock
109 109
      */
110 110
     public function updateTextBlock(TextBlock $textBlock, array $blockData)
111 111
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Update model text blocks by adding new ones and updating existing ones.
119 119
      *
120
-     * @param Larafolio\Models\HasContent $model Model that blocks belong to.
120
+     * @param HasContent $model Model that blocks belong to.
121 121
      * @param array                       $data  Array of model information.
122 122
      */
123 123
     public function updateAllTextBlocks(HasContent $model, array $data)
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * Remove a text block from a model.
140 140
      *
141
-     * @param Larafolio\Models\TextBlock $textBlock The text block to delete.
141
+     * @param TextBlock $textBlock The text block to delete.
142 142
      *
143 143
      * @return bool|null
144 144
      */
@@ -150,10 +150,10 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Add image to a model.
152 152
      *
153
-     * @param Larafolio\Models\HasContent $model     Model to add image to.
153
+     * @param HasContent $model     Model to add image to.
154 154
      * @param array                       $imageData Array of image infomation.
155 155
      *
156
-     * @return Larafolio\Models\HasContent
156
+     * @return Model
157 157
      */
158 158
     public function addImageToModel(HasContent $model, array $imageData)
159 159
     {
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
     /**
164 164
      * Update image name and caption.
165 165
      *
166
-     * @param Larafolio\Models\Image $image     Image to update.
166
+     * @param Image $image     Image to update.
167 167
      * @param array                  $imageData Array of inmage information.
168 168
      *
169
-     * @return Larafolio\Models\Image
169
+     * @return Image
170 170
      */
171 171
     public function updateImageInfo(Image $image, array $imageData)
172 172
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     /**
179 179
      * Remove image from storage and delete database info if path is unique.
180 180
      *
181
-     * @param Larafolio\Models\Image $image Image to remove.
181
+     * @param Image $image Image to remove.
182 182
      *
183 183
      * @return bool|null
184 184
      */
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     /**
197 197
      * Add a link to a model.
198 198
      *
199
-     * @param Larafolio\Models\HasContent $model    Model to add link to.
199
+     * @param HasContent $model    Model to add link to.
200 200
      * @param array                       $linkData Array of link info.
201 201
      */
202 202
     public function addLinkToModel(HasContent $model, array $linkData)
@@ -207,10 +207,10 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * Update a link.
209 209
      *
210
-     * @param Larafolio\Models\Link $link     Link to update.
210
+     * @param Link $link     Link to update.
211 211
      * @param array                 $linkData Array of link data.
212 212
      *
213
-     * @return Larafolio\Models\Link
213
+     * @return Link
214 214
      */
215 215
     public function updateLink(Link $link, array $linkData)
216 216
     {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     /**
223 223
      * Update model links by adding new ones and updating existing ones.
224 224
      *
225
-     * @param Larafolio\Models\HasContent $model Model that links belong to.
225
+     * @param HasContent $model Model that links belong to.
226 226
      * @param array                       $data  Array of model information.
227 227
      */
228 228
     public function updateAllLinks(HasContent $model, array $data)
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     /**
244 244
      * Remove link from a model.
245 245
      *
246
-     * @param Larafolio\Models\Link $link Link to remove.
246
+     * @param Link $link Link to remove.
247 247
      *
248 248
      * @return bool|null
249 249
      */
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * Update content associated with model.
257 257
      *
258
-     * @param Larafolio\Models\HasContent $model          Model associated with content.
258
+     * @param HasContent $model          Model associated with content.
259 259
      * @param string                      $type           Type of model.
260 260
      * @param array                       $data           user posted data.
261 261
      * @param callable                    $updateCallback Callback to update the content.
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/database/seeds/ProjectsTableSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
             factory(Project::class)
23 23
                 ->create(['name' => $name])
24
-                ->each(function (Project $project) {
24
+                ->each(function(Project $project) {
25 25
                     $project->blocks()->save(factory(TextBlock::class)->make());
26 26
 
27 27
                     $project->links()->save(factory(Link::class)->make());
Please login to merge, or discard this patch.
src/Http/Controllers/SettingsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $deletedProjects = Project::onlyTrashed()
38 38
             ->orderBy('deleted_at', 'DESC')
39 39
             ->get()
40
-            ->map(function (Project $project) {
40
+            ->map(function(Project $project) {
41 41
                 return $project->generateProps();
42 42
             });
43 43
 
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/ContentTraits/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|null
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/ContentTraits/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.