@@ -344,7 +344,7 @@ public function process_token( $stackPtr ) {
344344 break ;
345345 }
346346
347- return $ this ->check_code_is_escaped ( $ start , $ end, ' OutputNotEscaped ' );
347+ return $ this ->check_code_is_escaped ( $ start , $ end );
348348 }
349349
350350 /**
@@ -395,7 +395,7 @@ public function process_matched_token( $stackPtr, $group_name, $matched_content
395395 continue ;
396396 }
397397
398- $ this ->check_code_is_escaped ( $ param ['start ' ], ( $ param ['end ' ] + 1 ), ' OutputNotEscaped ' );
398+ $ this ->check_code_is_escaped ( $ param ['start ' ], ( $ param ['end ' ] + 1 ) );
399399 }
400400
401401 return $ end ;
@@ -414,7 +414,7 @@ public function process_matched_token( $stackPtr, $group_name, $matched_content
414414 return $ end ;
415415 }
416416
417- return $ this ->check_code_is_escaped ( $ message_param ['start ' ], ( $ message_param ['end ' ] + 1 ), ' OutputNotEscaped ' );
417+ return $ this ->check_code_is_escaped ( $ message_param ['start ' ], ( $ message_param ['end ' ] + 1 ) );
418418 }
419419
420420 /*
@@ -435,7 +435,7 @@ public function process_matched_token( $stackPtr, $group_name, $matched_content
435435
436436 // Examine each parameter individually.
437437 foreach ( $ params as $ param ) {
438- $ this ->check_code_is_escaped ( $ param ['start ' ], ( $ param ['end ' ] + 1 ), ' OutputNotEscaped ' );
438+ $ this ->check_code_is_escaped ( $ param ['start ' ], ( $ param ['end ' ] + 1 ) );
439439 }
440440
441441 return $ end ;
@@ -452,7 +452,7 @@ public function process_matched_token( $stackPtr, $group_name, $matched_content
452452 *
453453 * @return int Integer stack pointer to skip forward.
454454 */
455- protected function check_code_is_escaped ( $ start , $ end , $ code ) {
455+ protected function check_code_is_escaped ( $ start , $ end , $ code = ' OutputNotEscaped ' ) {
456456 /*
457457 * Check for a ternary operator.
458458 * We only need to do this here if this statement is lacking parenthesis.
0 commit comments