X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTestsParserHook.php;h=c8b3e8974b7bbc368a18b8718806d7b0bab4924d;hb=66eca97d86645110972c92cb677cc7813ddbe58d;hp=f01665c1d4e5c40043d41d977470e302e4dbaa53;hpb=c98a356db9dcc09e157c31d3f103a76839cbdc16;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTestsParserHook.php b/tests/parser/parserTestsParserHook.php index f01665c1d4..c8b3e8974b 100644 --- a/tests/parser/parserTestsParserHook.php +++ b/tests/parser/parserTestsParserHook.php @@ -35,18 +35,18 @@ class ParserTestParserHook { static function dumpHook( $in, $argv ) { return "
\n" .
-			   var_export( $in, true ) . "\n" .
-			   var_export( $argv, true ) . "\n" .
-			   "
"; + var_export( $in, true ) . "\n" . + var_export( $argv, true ) . "\n" . + ""; } static function staticTagHook( $in, $argv, $parser ) { - if ( ! count( $argv ) ) { + if ( !count( $argv ) ) { $parser->static_tag_buf = $in; return ''; } elseif ( count( $argv ) === 1 && isset( $argv['action'] ) - && $argv['action'] === 'flush' && $in === null ) - { + && $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; @@ -55,12 +55,12 @@ class ParserTestParserHook { } $parser->static_tag_buf = null; return $tmp; - } else - // wtf? + } else { // wtf? 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"; + } } }