We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $format = $this->outputFormat(); |
| 25 | 25 | |
| 26 | - if (! in_array($format, ['cli', 'json'], true)) { |
|
| 26 | + if (!in_array($format, ['cli', 'json'], true)) { |
|
| 27 | 27 | $this->errorBlock(sprintf('Unknown output format "%s". Supported formats: cli, json.', $format)); |
| 28 | 28 | |
| 29 | 29 | return Command::INVALID; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $this->closeProgressBlock(strtoupper($fixResult->status->label()), $fixResult->status->color()); |
| 86 | 86 | $this->printResultDetails($fixResult); |
| 87 | 87 | |
| 88 | - if (! $fixResult->status->isFailure()) { |
|
| 88 | + if (!$fixResult->status->isFailure()) { |
|
| 89 | 89 | $this->progressBlock('Re-running '.$step->title()); |
| 90 | 90 | |
| 91 | 91 | try { |
@@ -131,14 +131,14 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | $resultsCollection = collect($results); |
| 133 | 133 | |
| 134 | - $hasFailure = $resultsCollection->contains(function ($entry) { |
|
| 134 | + $hasFailure = $resultsCollection->contains(function($entry) { |
|
| 135 | 135 | /** @var StepResult $result */ |
| 136 | 136 | $result = $entry['result']; |
| 137 | 137 | |
| 138 | 138 | return $result->status->isFailure(); |
| 139 | 139 | }); |
| 140 | 140 | |
| 141 | - $warnings = $resultsCollection->filter(function ($entry) { |
|
| 141 | + $warnings = $resultsCollection->filter(function($entry) { |
|
| 142 | 142 | /** @var StepResult $result */ |
| 143 | 143 | $result = $entry['result']; |
| 144 | 144 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | if ($format === 'json') { |
| 149 | 149 | $payload = [ |
| 150 | 150 | 'version' => $majorVersion, |
| 151 | - 'results' => collect($results)->map(function ($entry) { |
|
| 151 | + 'results' => collect($results)->map(function($entry) { |
|
| 152 | 152 | /** @var StepResult $result */ |
| 153 | 153 | $result = $entry['result']; |
| 154 | 154 | |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $this->note(sprintf('%d step(s) reported warnings.', $warnings->count()), 'yellow', 'yellow'); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - if (! $hasFailure && $warnings->isEmpty()) { |
|
| 183 | + if (!$hasFailure && $warnings->isEmpty()) { |
|
| 184 | 184 | $this->note('All checks passed, you are ready to continue with the manual steps from the upgrade guide.', 'green', 'green'); |
| 185 | 185 | } |
| 186 | 186 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | $postUpgradeCommands = ($config)::postUpgradeCommands(); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - if ($expectedVersionInstalled && ! $hasFailure && ! empty($postUpgradeCommands)) { |
|
| 193 | + if ($expectedVersionInstalled && !$hasFailure && !empty($postUpgradeCommands)) { |
|
| 194 | 194 | $this->note("Now that you have v{$majorVersion} installed, don't forget to run the following commands:", 'green', 'green'); |
| 195 | 195 | |
| 196 | 196 | foreach ($postUpgradeCommands as $command) { |
@@ -229,11 +229,11 @@ discard block |
||
| 229 | 229 | return false; |
| 230 | 230 | } |
| 231 | 231 | |
| 232 | - if (! $this->input->isInteractive()) { |
|
| 232 | + if (!$this->input->isInteractive()) { |
|
| 233 | 233 | return false; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | - if (! in_array($result->status, [StepStatus::Warning, StepStatus::Failed], true)) { |
|
| 236 | + if (!in_array($result->status, [StepStatus::Warning, StepStatus::Failed], true)) { |
|
| 237 | 237 | return false; |
| 238 | 238 | } |
| 239 | 239 | |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | { |
| 252 | 252 | $configProviderClass = sprintf('%s\\v%s\\UpgradeCommandConfig', __NAMESPACE__, $majorVersion); |
| 253 | 253 | |
| 254 | - if (! class_exists($configProviderClass)) { |
|
| 254 | + if (!class_exists($configProviderClass)) { |
|
| 255 | 255 | throw new RuntimeException(sprintf( |
| 256 | 256 | 'Missing upgrade config provider for Backpack v%s. Please create %s.', |
| 257 | 257 | $majorVersion, |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | ? $this->laravel->make($configProviderClass) |
| 264 | 264 | : new $configProviderClass(); |
| 265 | 265 | |
| 266 | - if (! $provider instanceof UpgradeConfigInterface) { |
|
| 266 | + if (!$provider instanceof UpgradeConfigInterface) { |
|
| 267 | 267 | throw new RuntimeException(sprintf( |
| 268 | 268 | 'Upgrade config provider [%s] must implement %s.', |
| 269 | 269 | $configProviderClass, |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | |
| 274 | 274 | $steps = $provider->steps(); |
| 275 | 275 | |
| 276 | - if (! is_array($steps)) { |
|
| 276 | + if (!is_array($steps)) { |
|
| 277 | 277 | throw new RuntimeException(sprintf( |
| 278 | 278 | 'Upgrade config provider [%s] must return an array of step class names.', |
| 279 | 279 | $configProviderClass |