Passed
Push — master ( 52e057...da0668 )
by PRATIK
02:38
created
src/ThumbnailServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         /* Config File Publishing */
24 24
         $this->publishes([
25
-            __DIR__.'/../config/thumbnail.php' => config_path('thumbnail.php'),
25
+            __DIR__ . '/../config/thumbnail.php' => config_path('thumbnail.php'),
26 26
         ], 'thumbnail-config');
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Traits/Thumbnail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
             /* ------------------------------------------------------------------- */
16 16
 
17 17
             $image_file = $custom['image'] ?? request()->file($fieldname); // Retriving Image File
18
-            $filenamewithextension  = $image_file->getClientOriginalName(); //Retriving Full Image Name
18
+            $filenamewithextension = $image_file->getClientOriginalName(); //Retriving Full Image Name
19 19
             $raw_filename = pathinfo($filenamewithextension, PATHINFO_FILENAME); //Retriving Image Raw Filename only
20 20
             $filename = str_replace('-', '', $raw_filename); // Retrive Filename
21 21
             $extension = $image_file->getClientOriginalExtension(); //Retriving Image extension
@@ -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.