Passed
Pull Request — master (#969)
by Mike
03:25
created
src/Controllers/LfmController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function getErrors()
48 48
     {
49
-        $arr_errors = [];
49
+        $arr_errors = [ ];
50 50
 
51
-        if (! extension_loaded('gd') && ! extension_loaded('imagick')) {
51
+        if (!extension_loaded('gd') && !extension_loaded('imagick')) {
52 52
             array_push($arr_errors, trans('laravel-filemanager::lfm.message-extension_not_found'));
53 53
         }
54 54
 
55
-        if (! extension_loaded('exif')) {
55
+        if (!extension_loaded('exif')) {
56 56
             array_push($arr_errors, 'EXIF extension not found.');
57 57
         }
58 58
 
59
-        if (! extension_loaded('fileinfo')) {
59
+        if (!extension_loaded('fileinfo')) {
60 60
             array_push($arr_errors, 'Fileinfo extension not found.');
61 61
         }
62 62
 
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
             . $this->helper->currentLfmType()
65 65
             . '.valid_mime';
66 66
 
67
-        if (! is_array(config($mine_config_key))) {
67
+        if (!is_array(config($mine_config_key))) {
68 68
             array_push($arr_errors, 'Config : ' . $mine_config_key . ' is not a valid array.');
69 69
         }
70 70
 
71 71
         return $arr_errors;
72 72
     }
73 73
 
74
-    public function error($error_type, $variables = [])
74
+    public function error($error_type, $variables = [ ])
75 75
     {
76 76
         return $this->helper->error($error_type, $variables);
77 77
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function applyIniOverrides()
85 85
     {
86
-        $overrides = config('lfm.php_ini_overrides', []);
86
+        $overrides = config('lfm.php_ini_overrides', [ ]);
87 87
         
88 88
         if ($overrides && is_array($overrides) && count($overrides) === 0) {
89 89
             return;
Please login to merge, or discard this patch.
src/LaravelFilemanagerServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,28 +17,28 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function boot()
19 19
     {
20
-        $this->loadTranslationsFrom(__DIR__.'/lang', 'laravel-filemanager');
20
+        $this->loadTranslationsFrom(__DIR__ . '/lang', 'laravel-filemanager');
21 21
 
22
-        $this->loadViewsFrom(__DIR__.'/views', 'laravel-filemanager');
22
+        $this->loadViewsFrom(__DIR__ . '/views', 'laravel-filemanager');
23 23
 
24 24
         $this->publishes([
25 25
             __DIR__ . '/config/lfm.php' => base_path('config/lfm.php'),
26 26
         ], 'lfm_config');
27 27
 
28 28
         $this->publishes([
29
-            __DIR__.'/../public' => public_path('vendor/laravel-filemanager'),
29
+            __DIR__ . '/../public' => public_path('vendor/laravel-filemanager'),
30 30
         ], 'lfm_public');
31 31
 
32 32
         $this->publishes([
33
-            __DIR__.'/views'  => base_path('resources/views/vendor/laravel-filemanager'),
33
+            __DIR__ . '/views'  => base_path('resources/views/vendor/laravel-filemanager'),
34 34
         ], 'lfm_view');
35 35
 
36 36
         $this->publishes([
37
-            __DIR__.'/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'),
37
+            __DIR__ . '/Handlers/LfmConfigHandler.php' => base_path('app/Handlers/LfmConfigHandler.php'),
38 38
         ], 'lfm_handler');
39 39
 
40 40
         if (config('lfm.use_package_routes')) {
41
-            Route::group(['prefix' => 'filemanager', 'middleware' => ['web', 'auth']], function () {
41
+            Route::group([ 'prefix' => 'filemanager', 'middleware' => [ 'web', 'auth' ] ], function() {
42 42
                 \UniSharp\LaravelFilemanager\Lfm::routes();
43 43
             });
44 44
         }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->mergeConfigFrom(__DIR__ . '/config/lfm.php', 'lfm-config');
55 55
 
56
-        $this->app->singleton('laravel-filemanager', function () {
56
+        $this->app->singleton('laravel-filemanager', function() {
57 57
             return true;
58 58
         });
59 59
     }
Please login to merge, or discard this patch.