Skip to content

Commit fc9dda0

Browse files
committed
Fix CS
1 parent 9ddf033 commit fc9dda0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function (\SplFileInfo $current) {
5454
});
5555

5656
foreach ($files as $file) {
57-
if (!$file->isFile() || !str_ends_with($file->getFilename(), '.php')) {
57+
if (!$file->isFile() || !str_ends_with($file->getFilename(), '.php')) {
5858
continue;
5959
}
6060

RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private static function compilePattern(Route $route, string $pattern, bool $isHo
152152

153153
if ($isSeparator && $precedingText !== $precedingChar) {
154154
$tokens[] = ['text', substr($precedingText, 0, -\strlen($precedingChar))];
155-
} elseif (!$isSeparator && \strlen($precedingText) > 0) {
155+
} elseif (!$isSeparator && '' !== $precedingText) {
156156
$tokens[] = ['text', $precedingText];
157157
}
158158

0 commit comments

Comments
 (0)