|
@@ -351,6 +351,7 @@ class Foo
|
|
|
|
|
|
if ($nestToken->equals(')')) {
|
|
|
$nestIndex = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_PARENTHESIS_BRACE, $nestIndex, false);
|
|
|
+
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -407,11 +408,13 @@ class Foo
|
|
|
|
|
|
if ($nestToken->equals('}')) {
|
|
|
++$nestLevel;
|
|
|
+
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
if ($nestToken->equals('{')) {
|
|
|
--$nestLevel;
|
|
|
+
|
|
|
continue;
|
|
|
}
|
|
|
}
|
|
@@ -649,6 +652,7 @@ class Foo
|
|
|
// if there is some block in statement (eg lambda function) we need to skip it
|
|
|
if ($token->equals('{')) {
|
|
|
$index = $tokens->findBlockEnd(Tokens::BLOCK_TYPE_CURLY_BRACE, $index);
|
|
|
+
|
|
|
continue;
|
|
|
}
|
|
|
|