Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c77083

Browse files
committed
Fixing code standard
1 parent 2b20a40 commit 0c77083

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Component/Routing/Loader/AnnotationFileLoader.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ protected function findClass(string $file)
102102
for ($i = 0; isset($tokens[$i]); ++$i) {
103103
$token = $tokens[$i];
104104
if (80000 <= \PHP_VERSION_ID) {
105-
if (\T_ATTRIBUTE === ($token[0]??0) || ($openBrackets > 0 && $token === '[')) {
106-
$openBrackets++;
105+
if (\T_ATTRIBUTE === ($token[0] ?? 0) || ($openBrackets > 0 && '[' === $token)) {
106+
++$openBrackets;
107107
}
108-
if($openBrackets > 0 && $token === ']'){
109-
$openBrackets--;
108+
if ($openBrackets > 0 && ']' === $token) {
109+
--$openBrackets;
110110
}
111-
if($openBrackets > 0){
111+
if ($openBrackets > 0) {
112112
continue;
113113
}
114114
}

0 commit comments

Comments
 (0)