@@ -29,7 +29,7 @@ |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | $this->path = $config; |
32 | - $this->generate = !! $config; |
|
32 | + $this->generate = !!$config; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -170,17 +170,17 @@ |
||
170 | 170 | */ |
171 | 171 | public function publish() |
172 | 172 | { |
173 | - if (! $this->console instanceof Command) { |
|
173 | + if (!$this->console instanceof Command) { |
|
174 | 174 | $message = "The 'console' property must instance of \\Illuminate\\Console\\Command."; |
175 | 175 | |
176 | 176 | throw new \RuntimeException($message); |
177 | 177 | } |
178 | 178 | |
179 | - if (! $this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) { |
|
179 | + if (!$this->getFilesystem()->isDirectory($sourcePath = $this->getSourcePath())) { |
|
180 | 180 | return; |
181 | 181 | } |
182 | 182 | |
183 | - if (! $this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) { |
|
183 | + if (!$this->getFilesystem()->isDirectory($destinationPath = $this->getDestinationPath())) { |
|
184 | 184 | $this->getFilesystem()->makeDirectory($destinationPath, 0775, true); |
185 | 185 | } |
186 | 186 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('module_path')) { |
|
3 | +if (!function_exists('module_path')) { |
|
4 | 4 | /** |
5 | 5 | * Find the path for the given module. |
6 | 6 | * |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
18 | -if (! function_exists('config_path')) { |
|
18 | +if (!function_exists('config_path')) { |
|
19 | 19 | /** |
20 | 20 | * Get the configuration path. |
21 | 21 | * |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | } |
29 | 29 | } |
30 | 30 | |
31 | -if (! function_exists('public_path')) { |
|
31 | +if (!function_exists('public_path')) { |
|
32 | 32 | /** |
33 | 33 | * Get the path to the public folder. |
34 | 34 | * |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $path = str_replace('\\', '/', $this->getDestinationFilePath()); |
38 | 38 | |
39 | - if (! $this->laravel['files']->isDirectory($dir = dirname($path))) { |
|
39 | + if (!$this->laravel['files']->isDirectory($dir = dirname($path))) { |
|
40 | 40 | $this->laravel['files']->makeDirectory($dir, 0777, true); |
41 | 41 | } |
42 | 42 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | protected function getBaseClass($classType, $basename = false) |
81 | 81 | { |
82 | - $baseClass = $this->hasOption('base_class') && ! is_null($this->option('base_class')) |
|
82 | + $baseClass = $this->hasOption('base_class') && !is_null($this->option('base_class')) |
|
83 | 83 | ? $this->option('base_class') |
84 | 84 | : $this->laravel['modules']->config("base_classes.{$classType}"); |
85 | 85 |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | private function createMigrationName() |
96 | 96 | { |
97 | - if (! is_null($this->option('table'))) { |
|
97 | + if (!is_null($this->option('table'))) { |
|
98 | 98 | return $this->option('table'); |
99 | 99 | } |
100 | 100 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | { |
153 | 153 | $fillable = $this->option('fillable'); |
154 | 154 | |
155 | - if (! is_null($fillable)) { |
|
155 | + if (!is_null($fillable)) { |
|
156 | 156 | $fillable = str_replace('"', "'", json_encode(explode(',', $fillable))); |
157 | 157 | |
158 | 158 | return str_replace(',', ', ', $fillable); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $model = $this->option('model') ?: 'Model::class'; |
57 | 57 | |
58 | - if (! str_contains(strtolower($model), '::class')) { |
|
58 | + if (!str_contains(strtolower($model), '::class')) { |
|
59 | 59 | $model .= '::class'; |
60 | 60 | } |
61 | 61 |
@@ -97,7 +97,7 @@ |
||
97 | 97 | { |
98 | 98 | $model = studly_case($this->option('model')); |
99 | 99 | |
100 | - if (! $model) { |
|
100 | + if (!$model) { |
|
101 | 101 | $model = 'Illuminate\\Database\\Eloquent\\Model'; |
102 | 102 | } |
103 | 103 |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | private function installFromFile() |
53 | 53 | { |
54 | - if (! file_exists($path = base_path('modules.json'))) { |
|
54 | + if (!file_exists($path = base_path('modules.json'))) { |
|
55 | 55 | return $this->error("File 'modules.json' does not exist in your project root"); |
56 | 56 | } |
57 | 57 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $installer->run(); |
102 | 102 | |
103 | - if (! $this->option('no-update')) { |
|
103 | + if (!$this->option('no-update')) { |
|
104 | 104 | $this->call('module:update', [ |
105 | 105 | 'module' => $installer->getModuleName(), |
106 | 106 | ]); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $name = $this->argument('module'); |
47 | 47 | |
48 | - if (! empty($name)) { |
|
48 | + if (!empty($name)) { |
|
49 | 49 | return $this->rollback($name); |
50 | 50 | } |
51 | 51 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | |
83 | 83 | $database = $this->option('database'); |
84 | 84 | |
85 | - if (! empty($database)) { |
|
85 | + if (!empty($database)) { |
|
86 | 86 | $migrator->setDatabase($database); |
87 | 87 | } |
88 | 88 |