Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Commit f884309

Browse files
SpacePossumnicolas-grekas
authored andcommitted
[CS][2.7] yoda_style, no_unneeded_curly_braces, no_unneeded_final_method, semicolon_after_instruction
1 parent 2c42356 commit f884309

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)

AltStyle によって変換されたページ (->オリジナル) /