Completed
Push — master ( d55291...5fc19c )
by Davide
08:29 queued 04:03
created
src/Http/Controllers/CardController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     {
215 215
 
216 216
         // Create dir if not exist (in /storage/app/public/images/..)
217
-        if (! \Storage::disk('public')->has('images/'.$imageSubdir.'/')) {
217
+        if (!\Storage::disk('public')->has('images/'.$imageSubdir.'/')) {
218 218
             \Storage::disk('public')->makeDirectory('images/'.$imageSubdir.'/');
219 219
         }
220 220
 
@@ -225,14 +225,14 @@  discard block
 block discarded – undo
225 225
         // - save file as jpg with medium quality
226 226
         $image = Image::make($imageFile->getRealPath())
227 227
                                 ->resize((int) $imageWidth, null,
228
-                                    function ($constraint) {
228
+                                    function($constraint) {
229 229
                                         $constraint->aspectRatio();
230 230
                                     })
231 231
                                 ->save(storage_path($destinationPath.$imageName), 75);
232 232
 
233 233
         // Create the thumb
234 234
         $image->resize((int) $thumbWidth, null,
235
-                    function ($constraint) {
235
+                    function($constraint) {
236 236
                         $constraint->aspectRatio();
237 237
                     })
238 238
                 ->save(storage_path($destinationPath.'thumb_'.$imageName), 75);
Please login to merge, or discard this patch.