File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,9 @@ public function verifyNeverInvoked($name, $params = null)
152
152
$ separator = $ this ->callSyntax ($ name );
153
153
154
154
if (is_array ($ params )) {
155
- if (empty ($ calls )) return ;
155
+ if (empty ($ calls )) {
156
+ return ;
157
+ }
156
158
$ params = ArgumentsFormatter::toString ($ params );
157
159
foreach ($ calls as $ args ) {
158
160
if ($ this ->onlyExpectedArguments ($ params , $ args ) === $ params ) {
@@ -161,7 +163,9 @@ public function verifyNeverInvoked($name, $params = null)
161
163
}
162
164
return ;
163
165
}
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
+ }
165
169
}
166
170
167
171
}
You can’t perform that action at this time.
0 commit comments