File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -231,9 +231,9 @@ public function addUse($name)
231
231
/**
232
232
* @return static
233
233
*/
234
- public function setBody ($ statement , array $ args = NULL )
234
+ public function setBody ($ code , array $ args = NULL )
235
235
{
236
- $ this ->body = func_num_args () > 1 ? Helpers::formatArgs ($ statement , $ args ) : $ statement ;
236
+ $ this ->body = $ args === NULL ? $ code : Helpers::formatArgs ($ code , $ args );
237
237
return $ this ;
238
238
}
239
239
@@ -250,9 +250,9 @@ public function getBody()
250
250
/**
251
251
* @return static
252
252
*/
253
- public function addBody ($ statement , array $ args = NULL )
253
+ public function addBody ($ code , array $ args = NULL )
254
254
{
255
- $ this ->body .= (func_num_args () > 1 ? Helpers::formatArgs ($ statement , $ args ) : $ statement ) . "\n" ;
255
+ $ this ->body .= ($ args === NULL ? $ code : Helpers::formatArgs ($ code , $ args )) . "\n" ;
256
256
return $ this ;
257
257
}
258
258
You can’t perform that action at this time.
0 commit comments