Skip to content

Commit f1003fd

Browse files
committed
Keyword continue in switch() changed to break
It was bug, it was originally mean as "continue 2".
1 parent aff1f21 commit f1003fd

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/PhpDepend.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ public function parse($str)
111111
case T_NEW:
112112
case T_EXTENDS:
113113
$this->addDependency($this->readName());
114-
continue;
114+
break;
115115

116116
case T_DOUBLE_COLON:
117117
$this->addDependency($this->readStaticClass());
118-
continue;
118+
break;
119119

120120
case T_IMPLEMENTS:
121121
$this->addDependency($this->readImplements());
122-
continue;
122+
break;
123123

124124
// define
125125
case T_CLASS:
@@ -128,13 +128,13 @@ public function parse($str)
128128

129129
case T_INTERFACE:
130130
$this->addClass($this->namespace . '\\' . $this->readIdentifier());
131-
continue;
131+
break;
132132

133133
// namespace
134134
case self::$T_NAMESPACE:
135135
$this->namespace = $this->readIdentifier();
136136
$this->use = array();
137-
continue;
137+
break;
138138

139139
// USE keywords
140140
case T_USE:
@@ -146,7 +146,7 @@ public function parse($str)
146146
{
147147
$this->use = array_merge($this->use, $this->readUse());
148148
}
149-
continue;
149+
break;
150150

151151
case '{':
152152
$this->level++;
@@ -155,7 +155,7 @@ public function parse($str)
155155
{
156156
$this->inClass = $this->level;
157157
}
158-
continue;
158+
break;
159159

160160
case '}':
161161
if($this->inClass === $this->level)
@@ -164,7 +164,7 @@ public function parse($str)
164164
}
165165

166166
$this->level--;
167-
continue;
167+
break;
168168
}
169169
}
170170
}
@@ -325,7 +325,7 @@ private function readIdentifier($readNamespaceKeyword = FALSE)
325325
$name .= $token[1];
326326

327327
case T_WHITESPACE:
328-
continue;
328+
break;
329329

330330
default:
331331
$this->prev();

0 commit comments

Comments
 (0)