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)
231231 /**
232232 * @return static
233233 */
234- public function setBody ($ statement , array $ args = NULL )
234+ public function setBody ($ code , array $ args = NULL )
235235 {
236- $ this ->body = func_num_args () > 1 ? Helpers::formatArgs ($ statement , $ args ) : $ statement ;
236+ $ this ->body = $ args === NULL ? $ code : Helpers::formatArgs ($ code , $ args );
237237 return $ this ;
238238 }
239239
@@ -250,9 +250,9 @@ public function getBody()
250250 /**
251251 * @return static
252252 */
253- public function addBody ($ statement , array $ args = NULL )
253+ public function addBody ($ code , array $ args = NULL )
254254 {
255- $ this ->body .= (func_num_args () > 1 ? Helpers::formatArgs ($ statement , $ args ) : $ statement ) . "\n" ;
255+ $ this ->body .= ($ args === NULL ? $ code : Helpers::formatArgs ($ code , $ args )) . "\n" ;
256256 return $ this ;
257257 }
258258
You can’t perform that action at this time.
0 commit comments