X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FCoreParserFunctions.php;h=42091a07d64307e4e689b414db82be806f2e3682;hb=c54766586acab549f186e81eeab259845112809d;hp=7639e2f83795de2aba172ded79432431812db993;hpb=0a138f1acf224675f1a70eff8eea63c8d70a17dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 7639e2f837..42091a07d6 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -60,7 +60,11 @@ class CoreParserFunctions { $parser->setFunctionHook( $func, array( __CLASS__, $func ), Parser::SFH_NO_HASH ); } - $parser->setFunctionHook( 'namespace', array( __CLASS__, 'mwnamespace' ), Parser::SFH_NO_HASH ); + $parser->setFunctionHook( + 'namespace', + array( __CLASS__, 'mwnamespace' ), + Parser::SFH_NO_HASH + ); $parser->setFunctionHook( 'int', array( __CLASS__, 'intFunction' ), Parser::SFH_NO_HASH ); $parser->setFunctionHook( 'special', array( __CLASS__, 'special' ) ); $parser->setFunctionHook( 'speciale', array( __CLASS__, 'speciale' ) ); @@ -68,7 +72,11 @@ class CoreParserFunctions { $parser->setFunctionHook( 'formatdate', array( __CLASS__, 'formatDate' ) ); if ( $wgAllowDisplayTitle ) { - $parser->setFunctionHook( 'displaytitle', array( __CLASS__, 'displaytitle' ), Parser::SFH_NO_HASH ); + $parser->setFunctionHook( + 'displaytitle', + array( __CLASS__, 'displaytitle' ), + Parser::SFH_NO_HASH + ); } if ( $wgAllowSlowParserFunctions ) { $parser->setFunctionHook( @@ -696,15 +704,15 @@ class CoreParserFunctions { // split the given option to its variable if ( self::matchAgainstMagicword( 'rawsuffix', $arg1 ) ) { - //{{pagesincategory:|raw[|type]}} + // {{pagesincategory:|raw[|type]}} $raw = $arg1; $type = $magicWords->matchStartToEnd( $arg2 ); } else { - //{{pagesincategory:[|type[|raw]]}} + // {{pagesincategory:[|type[|raw]]}} $type = $magicWords->matchStartToEnd( $arg1 ); $raw = $arg2; } - if ( !$type ) { //backward compatibility + if ( !$type ) { // backward compatibility $type = 'pagesincategory_all'; } @@ -810,7 +818,9 @@ class CoreParserFunctions { * @param int $direction * @return string */ - public static function pad( $parser, $string, $length, $padding = '0', $direction = STR_PAD_RIGHT ) { + public static function pad( + $parser, $string, $length, $padding = '0', $direction = STR_PAD_RIGHT + ) { $padding = $parser->killMarkers( $padding ); $lengthOfPadding = mb_strlen( $padding ); if ( $lengthOfPadding == 0 ) {