blob: cefbac00b8ab3092eeed345a4a61f7fbc69aaed5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff -up ./src/Analyser.php.php73 ./src/Analyser.php
--- ./src/Analyser.php.php73 2017-11-18 18:35:43.000000000 +0100
+++ ./src/Analyser.php 2018-10-15 09:57:34.714427621 +0200
@@ -89,7 +89,7 @@ class Analyser
case T_CLASS:
if (!$this->isClassDeclaration($tokens, $i)) {
- continue;
+ break;
}
$className = $this->getClassName($namespace, $tokens, $i);
@@ -206,7 +206,7 @@ class Analyser
case T_INTERFACE:
case T_TRAIT:
if (!$this->isClassDeclaration($tokens, $i)) {
- continue;
+ break;
}
$this->collector->currentClassReset();
@@ -238,7 +238,7 @@ class Analyser
$prev = $this->getPreviousNonWhitespaceTokenPos($tokens, $i);
if ($tokens[$prev][0] === T_USE) {
- continue;
+ break;
}
$currentBlock = T_FUNCTION;
|