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)
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}
You can’t perform that action at this time.
0 commit comments