| @@ -168,7 +168,7 @@ | ||
| 168 | 168 | |
| 169 | 169 | private function loadFixture(string $filename): string | 
| 170 | 170 |      { | 
| 171 | - $fixture = \file_get_contents(__DIR__ . '/fixtures/' . $filename); | |
| 171 | + $fixture = \file_get_contents(__DIR__.'/fixtures/'.$filename); | |
| 172 | 172 |          if ($fixture === false) { | 
| 173 | 173 |              $this->fail('Fixture file not found'); | 
| 174 | 174 | } | 
| @@ -78,13 +78,13 @@ discard block | ||
| 78 | 78 | continue; | 
| 79 | 79 | } | 
| 80 | 80 | |
| 81 | -            if (\preg_match('/^(?:' . \preg_quote($oldStyle->__toString(), '/') . ')+/', $line, $matches) !== 1) { | |
| 81 | +            if (\preg_match('/^(?:'.\preg_quote($oldStyle->__toString(), '/').')+/', $line, $matches) !== 1) { | |
| 82 | 82 | $newContent .= $line; | 
| 83 | 83 | continue; | 
| 84 | 84 | } | 
| 85 | 85 | |
| 86 | 86 | $indentLevel = (int) (\strlen($matches[0]) / $oldStyle->amount); | 
| 87 | - $newContent .= \str_repeat($newStyle->__toString(), $indentLevel) . \substr($line, $indentLevel * $oldStyle->amount); | |
| 87 | + $newContent .= \str_repeat($newStyle->__toString(), $indentLevel).\substr($line, $indentLevel * $oldStyle->amount); | |
| 88 | 88 | } | 
| 89 | 89 | |
| 90 | 90 | return $newContent; | 
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 | } | 
| 149 | 149 | |
| 150 | 150 | // Update the stats | 
| 151 | -            if (! isset($indents[$key])) { | |
| 151 | +            if (!isset($indents[$key])) { | |
| 152 | 152 | $indents[$key] = [1, 0]; | 
| 153 | 153 |              } else { | 
| 154 | 154 | $indents[$key][0]++; | 
| @@ -166,7 +166,7 @@ discard block | ||
| 166 | 166 |      { | 
| 167 | 167 | $typeCharacter = $indentType === self::TYPE_SPACE ? 's' : 't'; | 
| 168 | 168 | |
| 169 | - return $typeCharacter . $indentAmount; | |
| 169 | + return $typeCharacter.$indentAmount; | |
| 170 | 170 | } | 
| 171 | 171 | |
| 172 | 172 | /** | 
| @@ -190,7 +190,7 @@ discard block | ||
| 190 | 190 | * | 
| 191 | 191 |       * @param array<string, array{int, int}> $indents | 
| 192 | 192 | */ | 
| 193 | - private static function getMostUsedKey(array $indents): string|null | |
| 193 | + private static function getMostUsedKey(array $indents): string | null | |
| 194 | 194 |      { | 
| 195 | 195 | $result = null; | 
| 196 | 196 | $maxUsed = 0; |