X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fparser%2FParserTestParserHook.php;h=acc5cb15816558288e109eca715fda66e5778b7f;hb=4ab8dc680e016d9b33c7f16188c14bf11c008e42;hp=5bf50ead6d628cc448c8e833af6db14f7eacb070;hpb=1e3c2e5904d628c001a8d65909b135ea9bf042aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/ParserTestParserHook.php b/tests/parser/ParserTestParserHook.php index 5bf50ead6d..acc5cb1581 100644 --- a/tests/parser/ParserTestParserHook.php +++ b/tests/parser/ParserTestParserHook.php @@ -49,16 +49,11 @@ class ParserTestParserHook { && $argv['action'] === 'flush' && $in === null ) { // Clear the buffer, we probably don't need to - if ( isset( $parser->static_tag_buf ) ) { - $tmp = $parser->static_tag_buf; - } else { - $tmp = ''; - } + $tmp = $parser->static_tag_buf ?? ''; $parser->static_tag_buf = null; return $tmp; } else { // wtf? - return - "\nCall this extension as string or as" . + return "\nCall this extension as string or as" . " , not in any other way.\n" . "text: " . var_export( $in, true ) . "\n" . "argv: " . var_export( $argv, true ) . "\n";