@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /* |
4 | 4 | * Check environment status |
5 | 5 | */ |
6 | -if (! function_exists('isProduction')) { |
|
6 | +if (!function_exists('isProduction')) { |
|
7 | 7 | function isProduction() |
8 | 8 | { |
9 | 9 | return 'production' == app()->environment(); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /* |
14 | 14 | * Check environment status |
15 | 15 | */ |
16 | -if (! function_exists('isTesting')) { |
|
16 | +if (!function_exists('isTesting')) { |
|
17 | 17 | function isTesting() |
18 | 18 | { |
19 | 19 | return 'testing' == app()->environment(); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | { |
34 | 34 | $media = $this->getLastMedia($collectionName); |
35 | 35 | |
36 | - if (! $media) { |
|
36 | + if (!$media) { |
|
37 | 37 | return ''; |
38 | 38 | } |
39 | 39 |
@@ -17,11 +17,11 @@ discard block |
||
17 | 17 | |
18 | 18 | public function __construct($name = null) |
19 | 19 | { |
20 | - if (! $this->gitInstalled()) { |
|
20 | + if (!$this->gitInstalled()) { |
|
21 | 21 | throw new \Exception('Git are not installed in your machine!'); |
22 | 22 | } |
23 | 23 | |
24 | - if (! $this->composerInstalled()) { |
|
24 | + if (!$this->composerInstalled()) { |
|
25 | 25 | throw new \Exception('Composer are not installed in your machine!'); |
26 | 26 | } |
27 | 27 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function gitInstalled(): bool |
60 | 60 | { |
61 | - return ! empty(exec('which git')); |
|
61 | + return !empty(exec('which git')); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function composerInstalled(): bool |
68 | 68 | { |
69 | - return ! empty(exec('which composer')) || file_exists(getcwd() . '/composer.phar'); |
|
69 | + return !empty(exec('which composer')) || file_exists(getcwd() . '/composer.phar'); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | |
59 | 59 | $this->stub_path = $stub_path = __DIR__ . '/../../stubs/'; |
60 | 60 | |
61 | - if (! $this->filesystem->exists($path)) { |
|
61 | + if (!$this->filesystem->exists($path)) { |
|
62 | 62 | $output->writeln('<comment>' . $path . ' does not exists!</comment>'); |
63 | 63 | |
64 | 64 | return 1; |
65 | 65 | } |
66 | 66 | |
67 | - if (! $this->configs($name)) { |
|
67 | + if (!$this->configs($name)) { |
|
68 | 68 | throw new \Exception('Config not available.', 1); |
69 | 69 | |
70 | 70 | return 1; |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | private function configs($name) |
99 | 99 | { |
100 | - if (! isset($this->configs[$name])) { |
|
100 | + if (!isset($this->configs[$name])) { |
|
101 | 101 | return false; |
102 | 102 | } |
103 | 103 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | { |
28 | 28 | $path = $input->getArgument('path'); |
29 | 29 | |
30 | - if (! file_exists($path)) { |
|
30 | + if (!file_exists($path)) { |
|
31 | 31 | $output->writeln('<error>' . $path . ' does not exists!</error>'); |
32 | 32 | |
33 | 33 | return 1; |