Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit 13eed20

Browse files
Merge branch '2.7' into 2.8
* 2.7: [CS][2.7] yoda_style, no_unneeded_curly_braces, no_unneeded_final_method, semicolon_after_instruction
2 parents 151afda + f884309 commit 13eed20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ClassCollectionLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public static function fixNamespaceDeclarations($source)
215215
do {
216216
$token = $tokens[++$i];
217217
$output .= isset($token[1]) && 'b"' !== $token ? $token[1] : $token;
218-
} while ($token[0] !== T_END_HEREDOC);
218+
} while (T_END_HEREDOC !== $token[0]);
219219
$output .= "\n";
220220
$rawChunk = '';
221221
} elseif (T_CONSTANT_ENCAPSED_STRING === $token[0]) {

ClassMapGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function createMap($dir)
6666

6767
$path = $file->getRealPath() ?: $file->getPathname();
6868

69-
if (pathinfo($path, PATHINFO_EXTENSION) !== 'php') {
69+
if ('php' !== pathinfo($path, PATHINFO_EXTENSION)) {
7070
continue;
7171
}
7272

0 commit comments

Comments
 (0)