X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FPreprocessor_Hash.php;h=6d6dd8937b7fda27db3032524b3c8b8bf2146b43;hp=0326499a7a4c54dcdf13d8a6478ff7452b281fa2;hb=6f3d5a5204770b7e9076ec0c956631c32a9e1114;hpb=5a6c78c441e9d977bb33a0eb4536d5a3c5067943 diff --git a/includes/parser/Preprocessor_Hash.php b/includes/parser/Preprocessor_Hash.php index 0326499a7a..6d6dd8937b 100644 --- a/includes/parser/Preprocessor_Hash.php +++ b/includes/parser/Preprocessor_Hash.php @@ -1088,7 +1088,7 @@ class PPFrame_Hash implements PPFrame { } elseif ( is_array( $contextNode ) ) { // Node descriptor array if ( count( $contextNode ) !== 2 ) { - throw new MWException( __METHOD__. + throw new MWException( __METHOD__ . ': found an array where a node descriptor should be' ); } list( $contextName, $contextChildren ) = $contextNode; @@ -1786,7 +1786,7 @@ class PPNode_Hash_Tree implements PPNode { $class = self::class; } } else { - throw new MWException( __METHOD__.': invalid node descriptor' ); + throw new MWException( __METHOD__ . ': invalid node descriptor' ); } return new $class( $store, $index ); } @@ -2206,7 +2206,7 @@ class PPNode_Hash_Attr implements PPNode { public function __construct( array $store, $index ) { $descriptor = $store[$index]; if ( $descriptor[PPNode_Hash_Tree::NAME][0] !== '@' ) { - throw new MWException( __METHOD__.': invalid name in attribute descriptor' ); + throw new MWException( __METHOD__ . ': invalid name in attribute descriptor' ); } $this->name = substr( $descriptor[PPNode_Hash_Tree::NAME], 1 ); $this->value = $descriptor[PPNode_Hash_Tree::CHILDREN][0];