Skip to content

Commit 43b9452

Browse files
Inline control structures are not allowed を修正
1 parent 039ebbe commit 43b9452

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/AspectMock/Proxy/Verifier.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ public function verifyNeverInvoked($name, $params = null)
152152
$separator = $this->callSyntax($name);
153153

154154
if (is_array($params)) {
155-
if (empty($calls)) return;
155+
if (empty($calls)) {
156+
return;
157+
}
156158
$params = ArgumentsFormatter::toString($params);
157159
foreach ($calls as $args) {
158160
if ($this->onlyExpectedArguments($params, $args) === $params) {
@@ -161,7 +163,9 @@ public function verifyNeverInvoked($name, $params = null)
161163
}
162164
return;
163165
}
164-
if (count($calls)) throw new fail(sprintf($this->neverInvoked, $this->className.$separator.$name));
166+
if (count($calls)) {
167+
throw new fail(sprintf($this->neverInvoked, $this->className.$separator.$name));
168+
}
165169
}
166170

167171
}

0 commit comments

Comments
 (0)