@@ -46,17 +46,17 @@ discard block |
||
| 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,7 +64,7 @@ discard block |
||
| 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 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | private function applyIniOverrides() |
| 80 | 80 | { |
| 81 | - $overrides = config('lfm.php_ini_overrides', []); |
|
| 81 | + $overrides = config('lfm.php_ini_overrides', [ ]); |
|
| 82 | 82 | |
| 83 | 83 | if ($overrides && is_array($overrides) && count($overrides) === 0) { |
| 84 | 84 | return; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | // TODO: remove this after refactoring RenameController and DeleteController |
| 95 | - protected function error($error_type, $variables = []) |
|
| 95 | + protected function error($error_type, $variables = [ ]) |
|
| 96 | 96 | { |
| 97 | 97 | return trans(Lfm::PACKAGE_NAME . '::lfm.error-' . $error_type, $variables); |
| 98 | 98 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | return response()->json(parent::error('rename'), 400); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - if (! $is_directory) { |
|
| 46 | + if (!$is_directory) { |
|
| 47 | 47 | $extension = $old_file->extension(); |
| 48 | 48 | if ($extension) { |
| 49 | 49 | $new_name = str_replace('.' . $extension, '', $new_name) . '.' . $extension; |