We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 039ebbe commit 43b9452Copy full SHA for 43b9452
1 file changed
src/AspectMock/Proxy/Verifier.php
@@ -152,7 +152,9 @@ public function verifyNeverInvoked($name, $params = null)
152
$separator = $this->callSyntax($name);
153
154
if (is_array($params)) {
155
- if (empty($calls)) return;
+ if (empty($calls)) {
156
+ return;
157
+ }
158
$params = ArgumentsFormatter::toString($params);
159
foreach ($calls as $args) {
160
if ($this->onlyExpectedArguments($params, $args) === $params) {
@@ -161,7 +163,9 @@ public function verifyNeverInvoked($name, $params = null)
161
163
}
162
164
return;
165
- 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
169
170
171
0 commit comments