We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $routeFilePath = base_path($this->option('route-file')); |
| 45 | 45 | |
| 46 | - if (! file_exists($routeFilePath)) { |
|
| 46 | + if (!file_exists($routeFilePath)) { |
|
| 47 | 47 | if ($routeFilePath !== base_path($this->backpackCustomRouteFile)) { |
| 48 | 48 | $this->info('The route file <fg=blue>'.$routeFilePath.'</> does not exist. Please create it first.'); |
| 49 | 49 | |
@@ -111,11 +111,11 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | // push all other elements one line down creating space for the new code |
| 113 | 113 | for ($i = count($originalContent) - 1; $i > $lastLine; $i--) { |
| 114 | - $originalContent[$i+1] = $originalContent[$i]; |
|
| 114 | + $originalContent[$i + 1] = $originalContent[$i]; |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | // merge the second part of the lastLineContent starting from the lastElement |
| 118 | - $originalContent[$lastLine+1] = implode(';', array_slice($lastLineContent, $lastElement)); |
|
| 118 | + $originalContent[$lastLine + 1] = implode(';', array_slice($lastLineContent, $lastElement)); |
|
| 119 | 119 | $lastLine++; |
| 120 | 120 | } |
| 121 | 121 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | private function cleanContentArray(array $content) |
| 144 | 144 | { |
| 145 | - return array_filter(array_map(function ($line) { |
|
| 145 | + return array_filter(array_map(function($line) { |
|
| 146 | 146 | $lineText = trim($line); |
| 147 | 147 | if ($lineText === '' || |
| 148 | 148 | $lineText === '\n' || |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | private function getLastLineNumberThatContains($needle, $haystack) |
| 177 | 177 | { |
| 178 | - $matchingLines = array_filter($haystack, function ($k) use ($needle) { |
|
| 178 | + $matchingLines = array_filter($haystack, function($k) use ($needle) { |
|
| 179 | 179 | return strpos($k, $needle) !== false; |
| 180 | 180 | }); |
| 181 | 181 | |