Completed
Branch 5.1 (74368e)
by Ankit
08:54
created
src/LaravelImage/ImageUploadService.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     }
168 168
 
169 169
     /**
170
-     * @param $folder
170
+     * @param string $folder
171 171
      */
172 172
     public function setUploadFolder($folder)
173 173
     {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * Get upload path
184 184
      *
185
-     * @return string
185
+     * @return boolean
186 186
      */
187 187
     public function getUploadPath()
188 188
     {
Please login to merge, or discard this patch.
src/LaravelImage/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 Route::get(config('laravelimage.routePath') . '/{path}',
4
-    function (\League\Glide\Server $server, \Illuminate\Http\Request $request) {
4
+    function(\League\Glide\Server $server, \Illuminate\Http\Request $request) {
5 5
         return $server->getImageResponse($request->getPathInfo(), $request->query());
6 6
     })->where('path', '.*');
Please login to merge, or discard this patch.
src/LaravelImage/ImageUploadServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $this->app->bind('\AnkitPokhrel\LaravelImage\ImageUploadService');
36 36
 
37
-        $this->app->singleton('laravelImage', function () {
37
+        $this->app->singleton('laravelImage', function() {
38 38
             return $this->app->make('\AnkitPokhrel\LaravelImage\ImageHelper');
39 39
         });
40 40
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     protected function registerGlide()
48 48
     {
49
-        $this->app->singleton('\League\Glide\Server', function ($app) {
49
+        $this->app->singleton('\League\Glide\Server', function($app) {
50 50
 
51 51
             $fileSystem = $app->make(Filesystem::class);
52 52
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();
80 80
 
81
-        $blade->directive('laravelImage', function ($options) {
81
+        $blade->directive('laravelImage', function($options) {
82 82
             return "<?php echo \\AnkitPokhrel\\LaravelImage\\LaravelImageFacade::picture(array $options);?>";
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/LaravelImage/ImageHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 
31 31
         $path = config('laravelimage.routePath') . '/' . $dir . $image . '?' . http_build_query($options, '', '&');
32 32
 
33
-        if ( ! empty((int) $width)) {
34
-            $path .= '&w=' . (int) $width;
33
+        if ( ! empty((int)$width)) {
34
+            $path .= '&w=' . (int)$width;
35 35
         }
36 36
 
37
-        if ( ! empty((int) $height)) {
38
-            $path .= '&h=' . (int) $height;
37
+        if ( ! empty((int)$height)) {
38
+            $path .= '&h=' . (int)$height;
39 39
         }
40 40
 
41 41
         return '<img src="' . asset($path) . '" ' . $this->buildAttributes($attributes) . ' />';
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         }
75 75
 
76 76
         return $this->image($options[0], $options[1], (isset($options[2]) ? $options[2] : null),
77
-            (isset($options[3]) ? $options[3] : null), (! empty($options[4]) ? $options[4] : []),
78
-            (! empty($options[5]) ? $options[5] : []));
77
+            (isset($options[3]) ? $options[3] : null), ( ! empty($options[4]) ? $options[4] : []),
78
+            ( ! empty($options[5]) ? $options[5] : []));
79 79
     }
80 80
 }
Please login to merge, or discard this patch.