@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->printHeader(); |
39 | 39 | |
40 | 40 | $passes = (new RequirementChecker())->check(); |
41 | - if(!$passes) { |
|
41 | + if (!$passes) { |
|
42 | 42 | $this->info('Sorry unfortunately your system is not meet with our requirements !'); |
43 | 43 | $this->printFooter(false); |
44 | 44 | $this->info('--'); |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | $this->symlinkForAsset(); |
60 | 60 | |
61 | 61 | |
62 | - if($this->confirm('Do you have setting the database configuration at .env ?')) { |
|
62 | + if ($this->confirm('Do you have setting the database configuration at .env ?')) { |
|
63 | 63 | $this->installCrudbooster(); |
64 | - }else{ |
|
64 | + } else { |
|
65 | 65 | $this->info('Setup Aborted !'); |
66 | 66 | $this->info('Please setting the database configuration for first !'); |
67 | 67 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | if (!file_exists($vendorPath)) { |
140 | 140 | $this->info('Creating public/vendor/crudbooster symlink...'); |
141 | 141 | app('files')->link(__DIR__.'/../assets', public_path('vendor/crudbooster')); |
142 | - return ; |
|
142 | + return; |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | $this->info('Vendor Path: '.$vendorPath); |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | $this->info('Migrating database...'); |
176 | 176 | $this->call('migrate', ['--path'=> '\database\migrations\crudbooster']); |
177 | 177 | |
178 | - if (! class_exists('CBSeeder')) { |
|
178 | + if (!class_exists('CBSeeder')) { |
|
179 | 179 | require_once __DIR__.'/../database/seeds/CBSeeder.php'; |
180 | 180 | } |
181 | 181 | $this->callSilent('db:seed', ['--class' => 'CBSeeder']); |
@@ -188,11 +188,11 @@ discard block |
||
188 | 188 | private function createVendorAtPublic() |
189 | 189 | { |
190 | 190 | $this->info('Checking public/vendor directory...'); |
191 | - if (! file_exists(public_path('vendor'))) { |
|
191 | + if (!file_exists(public_path('vendor'))) { |
|
192 | 192 | mkdir(public_path('vendor'), 0777); |
193 | 193 | } |
194 | 194 | |
195 | - if (! is_writable(public_path('vendor'))) { |
|
195 | + if (!is_writable(public_path('vendor'))) { |
|
196 | 196 | $this->info('Setup aborted !'); |
197 | 197 | $this->info('Please set public/vendor directory to writable 0777'); |
198 | 198 | exit; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | private function chechExtension($extension) |
65 | 65 | { |
66 | - if (! extension_loaded($extension)) { |
|
66 | + if (!extension_loaded($extension)) { |
|
67 | 67 | $this->info($extension.' extension: [Bad]'); |
68 | 68 | return $this->requirements = false; |
69 | 69 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | function handle($result, $table) |
23 | 23 | { |
24 | 24 | $orderby = $this->ctrl->orderby; |
25 | - if (! $orderby) { |
|
25 | + if (!$orderby) { |
|
26 | 26 | $result->orderby($table.'.'.$this->ctrl->primary_key, 'desc'); |
27 | 27 | return; |
28 | 28 | } |