X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtmlFormatter.php;h=ccbfba82119d67db66f82fa535f6e067b477dd9e;hb=b0b0d400dee3ef211a8b1798c7355f55c37172fb;hp=38aa3922fd2702ecf50b1654ce0fc7f19f9579e7;hpb=1d9c11aba4b2b91018db373bfb618ee24a2eeac5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HtmlFormatter.php b/includes/HtmlFormatter.php index 38aa3922fd..ccbfba8211 100644 --- a/includes/HtmlFormatter.php +++ b/includes/HtmlFormatter.php @@ -130,7 +130,7 @@ class HtmlFormatter { /** * Removes content we've chosen to remove. The text of the removed elements can be * extracted with the getText method. - * @return array of removed DOMElements + * @return array Array of removed DOMElements */ public function filterContent() { wfProfileIn( __METHOD__ ); @@ -138,7 +138,7 @@ class HtmlFormatter { // Bail out early if nothing to do if ( array_reduce( $removals, - function( $carry, $item ) { + function ( $carry, $item ) { return $carry && !$item; }, true @@ -209,7 +209,7 @@ class HtmlFormatter { /** * Removes a list of elelments from DOMDocument * @param array|DOMNodeList $elements - * @return array of removed elements + * @return array Array of removed elements */ private function removeElements( $elements ) { $list = $elements; @@ -237,7 +237,7 @@ class HtmlFormatter { private function fixLibXML( $html ) { wfProfileIn( __METHOD__ ); static $replacements; - if ( ! $replacements ) { + if ( !$replacements ) { // We don't include rules like '"' => '"' because entities had already been // normalized by libxml. Using this function with input not sanitized by libxml is UNSAFE! $replacements = new ReplacementArray( array(