Test Failed
Push — master ( 26c2a5...d708df )
by webdevetc
03:49
created
src/Services/UploadsService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             if (isset($image_size_details['crop']) && $image_size_details['crop']) {
201 201
                 $resizedImage = $resizedImage->fit($w, $h);
202 202
             } else {
203
-                $resizedImage = $resizedImage->resize($w, $h, static function ($constraint) {
203
+                $resizedImage = $resizedImage->resize($w, $h, static function($constraint) {
204 204
                     $constraint->aspectRatio();
205 205
                 });
206 206
             }
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
             if (isset($imageSizeDetails['crop']) && $imageSizeDetails['crop']) {
411 411
                 $resizedImage = $resizedImage->fit($w, $h);
412 412
             } else {
413
-                $resizedImage = $resizedImage->resize($w, $h, static function (Constraint $constraint) {
413
+                $resizedImage = $resizedImage->resize($w, $h, static function(Constraint $constraint) {
414 414
                     $constraint->aspectRatio();
415 415
                 });
416 416
             }
@@ -624,11 +624,11 @@  discard block
 block discarded – undo
624 624
 
625 625
     public function deletePostImage(Post $post):array{
626 626
         $deletedImageSizes = [];
627
-        foreach(array_keys(config('blogetc.image_sizes')) as $size) {
627
+        foreach (array_keys(config('blogetc.image_sizes')) as $size) {
628 628
             $imageFilename = $post->$size;
629
-            $path = $this->image_destination_path() .'/'. $imageFilename;
629
+            $path = $this->image_destination_path().'/'.$imageFilename;
630 630
 
631
-            if($imageFilename && file_exists($path) ){
631
+            if ($imageFilename && file_exists($path)) {
632 632
                 unlink($path);
633 633
                 $deletedImageSizes[] = $size;
634 634
             }
Please login to merge, or discard this patch.
src/Services/PostsService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
203 203
     }
204 204
 
205 205
     public function clearImageSizes(Post $post, array $sizes) {
206
-        foreach($sizes as $size) {
206
+        foreach ($sizes as $size) {
207 207
             $post->$size = null;
208 208
         }
209 209
 
Please login to merge, or discard this patch.