Passed
Push — master ( 9d27b0...4366cd )
by PRATIK
06:14 queued 03:40
created
src/Traits/Thumbnail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             ]);
32 32
             /* --------------------------------------------------------------------------------------------- */
33 33
 
34
-            $image = Image::cache(function ($cached_img) use ($image_file, $custom) {
34
+            $image = Image::cache(function($cached_img) use ($image_file, $custom) {
35 35
                 return $cached_img->make($image_file->getRealPath())->fit($custom['width'] ?? config('thumbnail.img_width', 1000), $custom['height'] ?? config('thumbnail.img_height', 800)); //Parent Image Interventing
36 36
             }, config('thumbnail.image_cached_time', 10), true);
37 37
             $image->save(public_path('storage/' . $this->$fieldname), $custom['quality'] ?? config('thumbnail.image_quality', 80)); // Parent Image Locating Save
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     private function makeImg($image_file, $name, $location, $width, $height, $quality)
58 58
     {
59 59
         $image = $image_file->storeAs($location, $name, 'public'); // Thumbnail Storage Information
60
-        $img = Image::cache(function ($cached_img) use ($image_file, $width, $height) {
60
+        $img = Image::cache(function($cached_img) use ($image_file, $width, $height) {
61 61
             return $cached_img->make($image_file->getRealPath())->fit($width, $height);
62 62
         }, config('thumbnail.image_cached_time', 10), true); //Storing Thumbnail
63 63
         $img->save(public_path('storage/' . $image), $quality); //Storing Thumbnail
Please login to merge, or discard this patch.