Completed
Push — master ( d867cc...eec135 )
by Ankit
17:31 queued 02:37
created
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   +4 added lines, -4 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
 
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function registerBladeExtensions()
78 78
     {
79
-        $blade = $this->app['view']->getEngineResolver()->resolve('blade')->getCompiler();
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::image($options);?>";
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/LaravelImage/ImageUploadService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
     protected $destination = '';
35 35
 
36 36
     /** @var array Uploaded file info */
37
-    protected $uploadedFileInfo = [];
37
+    protected $uploadedFileInfo = [ ];
38 38
 
39 39
     /** @var string Image validation rules */
40 40
     protected $validationRules;
41 41
 
42 42
     /** @var array|object Validation errors */
43
-    protected $errors = [];
43
+    protected $errors = [ ];
44 44
 
45 45
     /**
46 46
      * @constructor
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
             return false;
220 220
         }
221 221
 
222
-        $inputFile = [$this->field => $file];
223
-        $rules     = [$this->field => $this->validationRules];
222
+        $inputFile = [ $this->field => $file ];
223
+        $rules     = [ $this->field => $this->validationRules ];
224 224
 
225 225
         // Validate
226 226
         $validator = Validator::make($inputFile, $rules);
Please login to merge, or discard this patch.
src/LaravelImage/ImageHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @return string
25 25
      */
26
-    public function image($dir, $image, $width = null, $height = null, array $options = [], array $attributes = [])
26
+    public function image($dir, $image, $width = null, $height = null, array $options = [ ], array $attributes = [ ])
27 27
     {
28 28
         $attributes = array_replace_recursive($this->attributes, $attributes);
29 29
         $options    = array_replace_recursive($this->options, $options);
Please login to merge, or discard this patch.