We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | // Install Backpack Generators |
| 85 | 85 | $this->progressBlock('Installing Generators'); |
| 86 | - if (! file_exists('vendor/backpack/generators/composer.json')) { |
|
| 86 | + if (!file_exists('vendor/backpack/generators/composer.json')) { |
|
| 87 | 87 | // only do this if Generators aren't already required |
| 88 | 88 | $process = new Process(['composer', 'require', '--dev', 'backpack/generators']); |
| 89 | 89 | $process->setTimeout(300); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->closeProgressBlock(); |
| 98 | 98 | |
| 99 | 99 | // Optional commands |
| 100 | - if (! $this->option('no-interaction')) { |
|
| 100 | + if (!$this->option('no-interaction')) { |
|
| 101 | 101 | // Themes |
| 102 | 102 | $this->installTheme(); |
| 103 | 103 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | // Addons |
| 108 | 108 | $this->installAddons(); |
| 109 | - } elseif (! $this->isAnyThemeInstalled()) { |
|
| 109 | + } elseif (!$this->isAnyThemeInstalled()) { |
|
| 110 | 110 | // Install default theme |
| 111 | 111 | $this->progressBlock('Installing default theme'); |
| 112 | 112 | $this->executeArtisanProcess('backpack:require:theme-tabler'); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | //execute basset checks |
| 117 | - if (! $this->option('skip-basset-check')) { |
|
| 117 | + if (!$this->option('skip-basset-check')) { |
|
| 118 | 118 | $this->progressBlock('Running Basset checks'); |
| 119 | 119 | $this->executeArtisanProcess('basset:check'); |
| 120 | 120 | $this->closeProgressBlock(); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | $this->deleteLines(3); |
| 195 | 195 | |
| 196 | - if (! $total) { |
|
| 196 | + if (!$total) { |
|
| 197 | 197 | $this->deleteLines(); |
| 198 | 198 | $this->note('Skipping creating an admin user.'); |
| 199 | 199 | $this->newLine(); |
@@ -202,14 +202,14 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | private function isEveryAddonInstalled() |
| 204 | 204 | { |
| 205 | - return collect($this->addons)->every(function ($addon) { |
|
| 205 | + return collect($this->addons)->every(function($addon) { |
|
| 206 | 206 | return file_exists($addon->path); |
| 207 | 207 | }); |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | private function updateAddonsStatus() |
| 211 | 211 | { |
| 212 | - $this->addons = $this->addons->each(function (&$addon) { |
|
| 212 | + $this->addons = $this->addons->each(function(&$addon) { |
|
| 213 | 213 | $isInstalled = file_exists($addon->path); |
| 214 | 214 | $addon->status = $isInstalled ? 'installed' : 'not installed'; |
| 215 | 215 | $addon->statusColor = $isInstalled ? 'green' : 'yellow'; |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | { |
| 221 | 221 | // map the addons |
| 222 | 222 | $this->addons = collect($this->addons) |
| 223 | - ->map(function ($class) { |
|
| 223 | + ->map(function($class) { |
|
| 224 | 224 | return (object) $class::$addon; |
| 225 | 225 | }); |
| 226 | 226 | |
@@ -239,15 +239,15 @@ discard block |
||
| 239 | 239 | |
| 240 | 240 | // Calculate the printed line count |
| 241 | 241 | $printedLines = $this->addons |
| 242 | - ->map(function ($e) { |
|
| 242 | + ->map(function($e) { |
|
| 243 | 243 | return count($e->description); |
| 244 | 244 | }) |
| 245 | - ->reduce(function ($sum, $item) { |
|
| 245 | + ->reduce(function($sum, $item) { |
|
| 246 | 246 | return $sum + $item + 2; |
| 247 | 247 | }, 0); |
| 248 | 248 | |
| 249 | 249 | $total = 0; |
| 250 | - while (! $this->isEveryAddonInstalled()) { |
|
| 250 | + while (!$this->isEveryAddonInstalled()) { |
|
| 251 | 251 | $input = (int) $this->listChoice('Would you like to install a premium Backpack add-on? <fg=gray>(enter an option number from above or press any other key to continue the installation)</>', $this->addons->toArray()); |
| 252 | 252 | |
| 253 | 253 | if ($input < 1 || $input > $this->addons->count()) { |
@@ -282,14 +282,14 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | private function isEveryThemeInstalled() |
| 284 | 284 | { |
| 285 | - return $this->themes()->every(function ($theme) { |
|
| 285 | + return $this->themes()->every(function($theme) { |
|
| 286 | 286 | return $theme->status == 'installed'; |
| 287 | 287 | }); |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | private function isAnyThemeInstalled() |
| 291 | 291 | { |
| 292 | - return $this->themes()->filter(function ($theme) { |
|
| 292 | + return $this->themes()->filter(function($theme) { |
|
| 293 | 293 | return $theme->status == 'installed'; |
| 294 | 294 | })->count() > 0; |
| 295 | 295 | } |
@@ -307,10 +307,10 @@ discard block |
||
| 307 | 307 | |
| 308 | 308 | // Calculate the printed line count |
| 309 | 309 | $printedLines = $this->themes() |
| 310 | - ->map(function ($e) { |
|
| 310 | + ->map(function($e) { |
|
| 311 | 311 | return count($e->description); |
| 312 | 312 | }) |
| 313 | - ->reduce(function ($sum, $item) { |
|
| 313 | + ->reduce(function($sum, $item) { |
|
| 314 | 314 | return $sum + $item + 2; |
| 315 | 315 | }, 0); |
| 316 | 316 | |
@@ -346,9 +346,9 @@ discard block |
||
| 346 | 346 | public function themes() |
| 347 | 347 | { |
| 348 | 348 | return collect($this->themes) |
| 349 | - ->map(function ($class) { |
|
| 349 | + ->map(function($class) { |
|
| 350 | 350 | return (object) $class::$addon; |
| 351 | - })->each(function (&$theme) { |
|
| 351 | + })->each(function(&$theme) { |
|
| 352 | 352 | $isInstalled = file_exists($theme->path); |
| 353 | 353 | $theme->status = $isInstalled ? 'installed' : 'not installed'; |
| 354 | 354 | $theme->statusColor = $isInstalled ? 'green' : 'yellow'; |