Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Passed
Push — main ( d3a2ba...cb4bdb )
by Pedro
34:31 queued 19:34
created
Console/Commands/Upgrade/v7/Steps/CheckFileManagerPublishedViewsStep.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,18 +27,18 @@  discard block
 block discarded – undo
27 27
         $this->legacyFiles = [];
28 28
         $this->legacyDirectoryDetected = false;
29 29
 
30
-        if (! $this->context()->hasComposerPackage('backpack/filemanager')) {
30
+        if (!$this->context()->hasComposerPackage('backpack/filemanager')) {
31 31
             return StepResult::success('File Manager add-on not detected; no published views to review.');
32 32
         }
33 33
 
34
-        if (! $this->context()->fileExists(self::LEGACY_VIEWS_DIRECTORY)) {
34
+        if (!$this->context()->fileExists(self::LEGACY_VIEWS_DIRECTORY)) {
35 35
             return StepResult::success('No File Manager views found in resources/views/vendor/elfinder.');
36 36
         }
37 37
 
38 38
         $filesystem = new Filesystem();
39 39
         $absoluteDirectory = $this->context()->basePath(self::LEGACY_VIEWS_DIRECTORY);
40 40
 
41
-        if (! $filesystem->isDirectory($absoluteDirectory)) {
41
+        if (!$filesystem->isDirectory($absoluteDirectory)) {
42 42
             return StepResult::success('No File Manager views found in resources/views/vendor/elfinder.');
43 43
         }
44 44
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
     public function canFix(StepResult $result): bool
61 61
     {
62
-        if (! $result->status->isWarning()) {
62
+        if (!$result->status->isWarning()) {
63 63
             return false;
64 64
         }
65 65
 
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function fix(StepResult $result): StepResult
75 75
     {
76
-        if (! $this->legacyDirectoryDetected) {
76
+        if (!$this->legacyDirectoryDetected) {
77 77
             return StepResult::skipped('Legacy File Manager directory no longer present.');
78 78
         }
79 79
 
80 80
         foreach ($this->legacyFiles as $path) {
81
-            if (! $this->context()->deleteFile($path)) {
81
+            if (!$this->context()->deleteFile($path)) {
82 82
                 return StepResult::failure("Could not delete {$path} automatically.");
83 83
             }
84 84
         }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $filesystem = new Filesystem();
87 87
         $absoluteDirectory = $this->context()->basePath(self::LEGACY_VIEWS_DIRECTORY);
88 88
 
89
-        if ($filesystem->isDirectory($absoluteDirectory) && ! $filesystem->deleteDirectory($absoluteDirectory)) {
89
+        if ($filesystem->isDirectory($absoluteDirectory) && !$filesystem->deleteDirectory($absoluteDirectory)) {
90 90
             return StepResult::failure('Could not delete resources/views/vendor/elfinder automatically.');
91 91
         }
92 92
 
Please login to merge, or discard this patch.
Console/Commands/Upgrade/v7/Steps/CheckShowOperationComponentConfigStep.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $this->missingComponent = false;
38 38
 
39
-        if (! $this->configs->configFilesPublished()) {
39
+        if (!$this->configs->configFilesPublished()) {
40 40
             return StepResult::skipped('show.php config file is not published, core defaults already use the new datagrid component.');
41 41
         }
42 42
 
43
-        if (! $this->configs->publishedFileContainsKey($this->operationFilename, 'component')) {
43
+        if (!$this->configs->publishedFileContainsKey($this->operationFilename, 'component')) {
44 44
             $this->missingComponent = true;
45 45
 
46 46
             return StepResult::warning(
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function fix(StepResult $result): StepResult
65 65
     {
66
-        if (! $this->configs->configFilesPublished()) {
66
+        if (!$this->configs->configFilesPublished()) {
67 67
             return StepResult::skipped('show.php config file is not published, core defaults already use the new datagrid component.');
68 68
         }
69 69
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $error = null;
79 79
 
80
-        if (! $this->configs->addKeyToConfigFile($this->operationFilename, $snippet, $error)) {
80
+        if (!$this->configs->addKeyToConfigFile($this->operationFilename, $snippet, $error)) {
81 81
             return StepResult::failure($error ?? 'Could not update show.php automatically.');
82 82
         }
83 83
 
Please login to merge, or discard this patch.
src/app/Console/Commands/Upgrade/Support/ConfigFilesHelper.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
             return;
37 37
         }
38 38
 
39
-        if (! isset($this->publishedRoot)) {
39
+        if (!isset($this->publishedRoot)) {
40 40
             return;
41 41
         }
42 42
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         $absolutePath = $this->resolvePublishedPath($path);
61 61
 
62
-        if (! is_file($absolutePath)) {
62
+        if (!is_file($absolutePath)) {
63 63
             return null;
64 64
         }
65 65
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         if (is_array($current)) {
90 90
             if (is_array($expectedValue)) {
91 91
                 foreach ($expectedValue as $value) {
92
-                    if (! in_array($value, $current, true)) {
92
+                    if (!in_array($value, $current, true)) {
93 93
                         return false;
94 94
                     }
95 95
                 }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         $updated = preg_replace_callback(
135 135
             $pattern,
136
-            function (array $matches) use ($newValue, &$changed) {
136
+            function(array $matches) use ($newValue, &$changed) {
137 137
                 $existing = trim($matches['value']);
138 138
                 $quote = $existing[0] ?? null;
139 139
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             1
157 157
         );
158 158
 
159
-        if ($updated === null || ! $changed) {
159
+        if ($updated === null || !$changed) {
160 160
             return false;
161 161
         }
162 162
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
         $updated = preg_replace_callback(
183 183
             $pattern,
184
-            function (array $matches) use ($valueExpression) {
184
+            function(array $matches) use ($valueExpression) {
185 185
                 $position = strpos($matches[0], $valueExpression);
186 186
                 $indentation = $position === false ? '' : substr($matches[0], 0, $position);
187 187
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
     public function analyzeConfigFile(string $path): ?array
213 213
     {
214
-        if (! is_file($path)) {
214
+        if (!is_file($path)) {
215 215
             return null;
216 216
         }
217 217
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
             $missingKeys = $analysis['missing_keys'] ?? [];
304 304
 
305
-            if (! empty($missingKeys)) {
305
+            if (!empty($missingKeys)) {
306 306
                 $missingKeysPerFile[$displayPath] = $missingKeys;
307 307
             }
308 308
 
@@ -321,16 +321,16 @@  discard block
 block discarded – undo
321 321
                     continue;
322 322
                 }
323 323
 
324
-                if (! isset($entriesByKey[$key])) {
324
+                if (!isset($entriesByKey[$key])) {
325 325
                     $entriesByKey[$key] = $entry;
326 326
                 }
327 327
 
328
-                if (! isset($collectedEntries[$key])) {
328
+                if (!isset($collectedEntries[$key])) {
329 329
                     $collectedEntries[$key] = $entry;
330 330
                 }
331 331
             }
332 332
 
333
-            if (! empty($entriesByKey)) {
333
+            if (!empty($entriesByKey)) {
334 334
                 $topLevelEntriesPerFile[$displayPath] = array_values($entriesByKey);
335 335
                 $topLevelMissingKeysPerFile[$displayPath] = array_keys($entriesByKey);
336 336
             }
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 
379 379
     public function loadConfigArray(string $path): ?array
380 380
     {
381
-        if (! is_file($path)) {
381
+        if (!is_file($path)) {
382 382
             return null;
383 383
         }
384 384
 
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
             throw new \InvalidArgumentException('Published directory path must not be empty.');
437 437
         }
438 438
 
439
-        $this->publishedIsFile = ! is_dir($this->publishedRoot);
439
+        $this->publishedIsFile = !is_dir($this->publishedRoot);
440 440
         $this->configFiles = [];
441 441
     }
442 442
 
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
             throw new \InvalidArgumentException('Package directory path must not be empty.');
449 449
         }
450 450
 
451
-        $this->packageIsFile = ! is_dir($this->packageRoot);
451
+        $this->packageIsFile = !is_dir($this->packageRoot);
452 452
         $this->configFiles = [];
453 453
     }
454 454
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
                 $normalized[] = rtrim($line, "\r");
499 499
             }
500 500
 
501
-            if (! empty($normalized)) {
501
+            if (!empty($normalized)) {
502 502
                 $blocks[] = implode(PHP_EOL, $normalized);
503 503
             }
504 504
         }
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
         $after = substr($contents, $closingPosition);
543 543
 
544 544
         $configArray = $this->loadPublishedConfig($path);
545
-        $shouldEnsureTrailingComma = $configArray === null ? true : ! empty($configArray);
545
+        $shouldEnsureTrailingComma = $configArray === null ? true : !empty($configArray);
546 546
 
547 547
         if ($shouldEnsureTrailingComma) {
548 548
             $before = $this->ensureTrailingComma($before);
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 
558 558
         $updated = $before.$snippet.$after;
559 559
 
560
-        if (! $this->writePublishedFile($path, $updated)) {
560
+        if (!$this->writePublishedFile($path, $updated)) {
561 561
             $error = sprintf('Could not update %s automatically.', $this->publishedRelativePath($path));
562 562
 
563 563
             return false;
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             return false;
596 596
         }
597 597
 
598
-        if (! $this->writePublishedFile($path, $updatedContents)) {
598
+        if (!$this->writePublishedFile($path, $updatedContents)) {
599 599
             $error = sprintf('Could not save the updated %s configuration.', $this->publishedRelativePath($path));
600 600
 
601 601
             return false;
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
             break;
673 673
         }
674 674
 
675
-        if (! $modified) {
675
+        if (!$modified) {
676 676
             return $before;
677 677
         }
678 678
 
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
     {
690 690
         $packagePath = $this->packagePathFor($path);
691 691
 
692
-        if (! is_file($packagePath)) {
692
+        if (!is_file($packagePath)) {
693 693
             return [];
694 694
         }
695 695
 
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
             $line = rtrim($lines[$index], "\r");
710 710
             $trimmed = ltrim($line);
711 711
 
712
-            if (! $withinConfigArray) {
712
+            if (!$withinConfigArray) {
713 713
                 if (preg_match('/return\s*\[/', $trimmed)) {
714 714
                     $withinConfigArray = true;
715 715
                 }
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
             if ($this->isBlockCommentStart($trimmed)) {
726 726
                 $pendingComments[] = $line;
727 727
 
728
-                while (! str_contains($trimmed, '*/') && $index + 1 < $lineCount) {
728
+                while (!str_contains($trimmed, '*/') && $index + 1 < $lineCount) {
729 729
                     $index++;
730 730
                     $line = rtrim($lines[$index], "\r");
731 731
                     $trimmed = ltrim($line);
@@ -742,13 +742,13 @@  discard block
 block discarded – undo
742 742
                 continue;
743 743
             }
744 744
 
745
-            if ($trimmed === '' && ! empty($pendingComments)) {
745
+            if ($trimmed === '' && !empty($pendingComments)) {
746 746
                 $pendingComments[] = $line;
747 747
                 $index++;
748 748
                 continue;
749 749
             }
750 750
 
751
-            if (! preg_match('/^([\'"])\s*(.+?)\1\s*=>/', $trimmed, $matches)) {
751
+            if (!preg_match('/^([\'"])\s*(.+?)\1\s*=>/', $trimmed, $matches)) {
752 752
                 $pendingComments = [];
753 753
                 $index++;
754 754
                 continue;
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
             $valueDepth = $this->calculateBracketDelta($line);
761 761
             $hasTerminatingComma = $this->lineHasTerminatingComma($line);
762 762
 
763
-            while (($valueDepth > 0 || ! $hasTerminatingComma) && $index + 1 < $lineCount) {
763
+            while (($valueDepth > 0 || !$hasTerminatingComma) && $index + 1 < $lineCount) {
764 764
                 $index++;
765 765
                 $line = rtrim($lines[$index], "\r");
766 766
                 $entryLines[] = $line;
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
         $files = [];
788 788
 
789 789
         foreach ($definitions as $definition) {
790
-            if (! is_string($definition)) {
790
+            if (!is_string($definition)) {
791 791
                 continue;
792 792
             }
793 793
 
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
         $current = $config;
976 976
 
977 977
         foreach ($segments as $segment) {
978
-            if (! is_array($current) || ! array_key_exists($segment, $current)) {
978
+            if (!is_array($current) || !array_key_exists($segment, $current)) {
979 979
                 return null;
980 980
             }
981 981
 
@@ -1047,13 +1047,13 @@  discard block
 block discarded – undo
1047 1047
         for ($i = 0; $i < $length; $i++) {
1048 1048
             $char = $line[$i];
1049 1049
 
1050
-            if ($char === '\'' && ! $inDouble && ! $this->isCharacterEscaped($line, $i)) {
1051
-                $inSingle = ! $inSingle;
1050
+            if ($char === '\'' && !$inDouble && !$this->isCharacterEscaped($line, $i)) {
1051
+                $inSingle = !$inSingle;
1052 1052
                 continue;
1053 1053
             }
1054 1054
 
1055
-            if ($char === '"' && ! $inSingle && ! $this->isCharacterEscaped($line, $i)) {
1056
-                $inDouble = ! $inDouble;
1055
+            if ($char === '"' && !$inSingle && !$this->isCharacterEscaped($line, $i)) {
1056
+                $inDouble = !$inDouble;
1057 1057
                 continue;
1058 1058
             }
1059 1059
 
@@ -1088,17 +1088,17 @@  discard block
 block discarded – undo
1088 1088
         for ($i = 0; $i < $length; $i++) {
1089 1089
             $char = $line[$i];
1090 1090
 
1091
-            if ($char === '\'' && ! $inDouble) {
1092
-                if (! $this->isCharacterEscaped($line, $i)) {
1093
-                    $inSingle = ! $inSingle;
1091
+            if ($char === '\'' && !$inDouble) {
1092
+                if (!$this->isCharacterEscaped($line, $i)) {
1093
+                    $inSingle = !$inSingle;
1094 1094
                 }
1095 1095
 
1096 1096
                 continue;
1097 1097
             }
1098 1098
 
1099
-            if ($char === '"' && ! $inSingle) {
1100
-                if (! $this->isCharacterEscaped($line, $i)) {
1101
-                    $inDouble = ! $inDouble;
1099
+            if ($char === '"' && !$inSingle) {
1100
+                if (!$this->isCharacterEscaped($line, $i)) {
1101
+                    $inDouble = !$inDouble;
1102 1102
                 }
1103 1103
 
1104 1104
                 continue;
Please login to merge, or discard this patch.
src/app/Console/Commands/Upgrade/UpgradeCommand.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
             if ($this->shouldOfferFix($step, $result)) {
95 95
                 $options = $step->fixOptions($result);
96 96
 
97
-                if (! empty($options)) {
97
+                if (!empty($options)) {
98 98
                     [$choiceMap, $defaultLabel] = $this->normalizeFixOptions($options);
99 99
 
100
-                    if (! empty($choiceMap)) {
100
+                    if (!empty($choiceMap)) {
101 101
                         $question = trim($step->fixMessage($result));
102 102
                         $question = $question !== '' ? $question : 'Select an automatic fix option';
103 103
                         $selectedLabel = $this->choice('  '.$question, array_keys($choiceMap), $defaultLabel);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                             $this->closeProgressBlock(strtoupper($fixResult->status->label()), $fixResult->status->color());
112 112
                             $this->printResultDetails($fixResult);
113 113
 
114
-                            if (! $fixResult->status->isFailure()) {
114
+                            if (!$fixResult->status->isFailure()) {
115 115
                                 $this->progressBlock('Re-running '.$step->title());
116 116
 
117 117
                                 try {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
                         $this->closeProgressBlock(strtoupper($fixResult->status->label()), $fixResult->status->color());
142 142
                         $this->printResultDetails($fixResult);
143 143
 
144
-                        if (! $fixResult->status->isFailure()) {
144
+                        if (!$fixResult->status->isFailure()) {
145 145
                             $this->progressBlock('Re-running '.$step->title());
146 146
 
147 147
                             try {
@@ -186,14 +186,14 @@  discard block
 block discarded – undo
186 186
     ): int {
187 187
         $resultsCollection = collect($results);
188 188
 
189
-        $hasFailure = $resultsCollection->contains(function ($entry) {
189
+        $hasFailure = $resultsCollection->contains(function($entry) {
190 190
             /** @var StepResult $result */
191 191
             $result = $entry['result'];
192 192
 
193 193
             return $result->status->isFailure();
194 194
         });
195 195
 
196
-        $warnings = $resultsCollection->filter(function ($entry) {
196
+        $warnings = $resultsCollection->filter(function($entry) {
197 197
             /** @var StepResult $result */
198 198
             $result = $entry['result'];
199 199
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         });
202 202
 
203 203
         $failedTitles = $resultsCollection
204
-            ->filter(function ($entry) {
204
+            ->filter(function($entry) {
205 205
                 /** @var StepResult $result */
206 206
                 $result = $entry['result'];
207 207
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
             $this->note('At least one step reported a failure. Review the messages above before continuing.', 'red', 'red');
221 221
         }
222 222
 
223
-        if (! $hasFailure && $warnings->isEmpty()) {
223
+        if (!$hasFailure && $warnings->isEmpty()) {
224 224
             $this->note('All checks passed, you are ready to continue with the manual steps from the upgrade guide.', 'green', 'green');
225 225
         }
226 226
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
             $postUpgradeCommands = ($config)::postUpgradeCommands();
247 247
         }
248 248
 
249
-        if ($expectedVersionInstalled && ! $hasFailure && ! empty($postUpgradeCommands)) {
249
+        if ($expectedVersionInstalled && !$hasFailure && !empty($postUpgradeCommands)) {
250 250
             $this->note("Now that you have {$versionLabel} installed, don't forget to run the following commands:", 'green', 'green');
251 251
 
252 252
             foreach ($postUpgradeCommands as $command) {
@@ -281,11 +281,11 @@  discard block
 block discarded – undo
281 281
 
282 282
     protected function shouldOfferFix(Step $step, StepResult $result): bool
283 283
     {
284
-        if (! $this->input->isInteractive()) {
284
+        if (!$this->input->isInteractive()) {
285 285
             return false;
286 286
         }
287 287
 
288
-        if (! in_array($result->status, [StepStatus::Warning, StepStatus::Failed], true)) {
288
+        if (!in_array($result->status, [StepStatus::Warning, StepStatus::Failed], true)) {
289 289
             return false;
290 290
         }
291 291
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
                 $value = is_string($key) ? $key : $label;
316 316
             }
317 317
 
318
-            if (! is_string($label)) {
318
+            if (!is_string($label)) {
319 319
                 continue;
320 320
             }
321 321
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
             }
334 334
         }
335 335
 
336
-        if ($defaultLabel === null && ! empty($choices)) {
336
+        if ($defaultLabel === null && !empty($choices)) {
337 337
             $defaultLabel = array_key_first($choices);
338 338
         }
339 339
 
@@ -350,11 +350,11 @@  discard block
 block discarded – undo
350 350
 
351 351
         $configProviderClass = sprintf('%s\\%s\\UpgradeCommandConfig', __NAMESPACE__, $descriptor['namespace']);
352 352
 
353
-        if (! class_exists($configProviderClass)) {
353
+        if (!class_exists($configProviderClass)) {
354 354
             $this->manuallyLoadConfigDirectory($descriptor);
355 355
         }
356 356
 
357
-        if (! class_exists($configProviderClass)) {
357
+        if (!class_exists($configProviderClass)) {
358 358
             throw new RuntimeException(sprintf(
359 359
                 'Missing upgrade config provider for Backpack %s. Please create %s.',
360 360
                 $descriptor['label'],
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
             ? $this->laravel->make($configProviderClass)
367 367
             : new $configProviderClass();
368 368
 
369
-        if (! $provider instanceof UpgradeConfigInterface) {
369
+        if (!$provider instanceof UpgradeConfigInterface) {
370 370
             throw new RuntimeException(sprintf(
371 371
                 'Upgrade config provider [%s] must implement %s.',
372 372
                 $configProviderClass,
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
         $steps = $provider->steps();
378 378
 
379
-        if (! is_array($steps)) {
379
+        if (!is_array($steps)) {
380 380
             throw new RuntimeException(sprintf(
381 381
                 'Upgrade config provider [%s] must return an array of step class names.',
382 382
                 $configProviderClass
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
                 $singleDescriptor = $sorted[0];
429 429
                 $singleConfig = $this->resolveConfigForDescriptor($singleDescriptor);
430 430
 
431
-                if (! $this->descriptorHasSteps($singleConfig)) {
431
+                if (!$this->descriptorHasSteps($singleConfig)) {
432 432
                     if ($this->displayDescriptorDescription($singleDescriptor, $singleConfig)) {
433 433
                         $this->newLine();
434 434
                     }
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
                 $hasSteps = $this->descriptorHasSteps($config);
447 447
                 $summary = $hasSteps ? $this->descriptorChoiceSummary($descriptor, $config) : null;
448 448
 
449
-                if (! $hasSteps) {
449
+                if (!$hasSteps) {
450 450
                     if ($this->displayDescriptorDescription($descriptor, $config)) {
451 451
                         $this->newLine();
452 452
                     }
@@ -552,13 +552,13 @@  discard block
 block discarded – undo
552 552
             return $this->descriptorChoiceSummaries[$key];
553 553
         }
554 554
 
555
-        if (! $config instanceof UpgradeConfigSummaryInterface) {
555
+        if (!$config instanceof UpgradeConfigSummaryInterface) {
556 556
             return $this->descriptorChoiceSummaries[$key] = null;
557 557
         }
558 558
 
559 559
         $summary = $config->upgradeCommandSummary();
560 560
 
561
-        if (! is_string($summary)) {
561
+        if (!is_string($summary)) {
562 562
             return $this->descriptorChoiceSummaries[$key] = null;
563 563
         }
564 564
 
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
 
598 598
         try {
599 599
             $description($this);
600
-        } catch (\ArgumentCountError|\TypeError $exception) {
600
+        } catch (\ArgumentCountError | \TypeError $exception) {
601 601
             if ($description instanceof \Closure) {
602 602
                 $description->call($this);
603 603
 
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 
629 629
             $configPath = $directory.DIRECTORY_SEPARATOR.'UpgradeCommandConfig.php';
630 630
 
631
-            if (! $filesystem->exists($configPath)) {
631
+            if (!$filesystem->exists($configPath)) {
632 632
                 continue;
633 633
             }
634 634
 
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
     {
689 689
         $list = array_values($descriptors);
690 690
 
691
-        usort($list, function (array $a, array $b) use ($direction) {
691
+        usort($list, function(array $a, array $b) use ($direction) {
692 692
             $comparison = version_compare($a['comparable'], $b['comparable']);
693 693
 
694 694
             return $direction === 'desc' ? -$comparison : $comparison;
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
     protected function installedBackpackPrettyVersion(): ?string
729 729
     {
730 730
         try {
731
-            if (! InstalledVersions::isInstalled('backpack/crud')) {
731
+            if (!InstalledVersions::isInstalled('backpack/crud')) {
732 732
                 return null;
733 733
             }
734 734
         } catch (OutOfBoundsException $exception) {
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 
782 782
     protected function segmentsToComparable(array $segments): string
783 783
     {
784
-        return implode('.', array_map(static function ($segment) {
784
+        return implode('.', array_map(static function($segment) {
785 785
             return (string) (int) $segment;
786 786
         }, $segments));
787 787
     }
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 
800 800
         $stepsPath = $basePath.DIRECTORY_SEPARATOR.'Steps';
801 801
 
802
-        if (! $filesystem->isDirectory($stepsPath)) {
802
+        if (!$filesystem->isDirectory($stepsPath)) {
803 803
             return;
804 804
         }
805 805
 
Please login to merge, or discard this patch.
src/app/Console/Commands/Upgrade/v7/Steps/CheckThemeTablerConfigStep.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     public function fixOptions(StepResult $result): array
79 79
     {
80
-        if (! $this->needsPublish || $this->acceptedNewStyle) {
80
+        if (!$this->needsPublish || $this->acceptedNewStyle) {
81 81
             return [];
82 82
         }
83 83
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function fix(StepResult $result): StepResult
103 103
     {
104
-        if (! $this->needsPublish) {
104
+        if (!$this->needsPublish) {
105 105
             return StepResult::skipped('Tabler theme config already published.');
106 106
         }
107 107
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
         $packagePath = $this->configs->packageConfigPath($this->configFilename);
131 131
 
132
-        if (! is_file($packagePath)) {
132
+        if (!is_file($packagePath)) {
133 133
             return StepResult::failure('Could not publish config/backpack/theme-tabler.php automatically.');
134 134
         }
135 135
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             return StepResult::failure('Could not read the default Tabler config to publish it automatically.');
140 140
         }
141 141
 
142
-        if (! $this->configs->writePublishedFile($this->configFilename, $defaultContents)) {
142
+        if (!$this->configs->writePublishedFile($this->configFilename, $defaultContents)) {
143 143
             return StepResult::failure('Failed writing changes to config/backpack/theme-tabler.php.');
144 144
         }
145 145
 
Please login to merge, or discard this patch.