From: Pavel Astakhov Date: Mon, 17 Aug 2015 11:13:27 +0000 (+0600) Subject: Tiny clean up of Parser::doQuotes() X-Git-Tag: 1.31.0-rc.0~10308^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=78c66e6467196d5ddb52e071f8b6bb500d9cf1be;p=lhc%2Fweb%2Fwiklou.git Tiny clean up of Parser::doQuotes() $firstsingleletterword always is -1 here because we leave the loop when it's set Change-Id: I73a430b7ac650bc5919ab95867eec09f723395f2 --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 65d8182151..1b7c9a0dd3 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1613,12 +1613,10 @@ class Parser { $firstspace = $i; } } elseif ( $x2 === ' ' ) { - if ( $firstsingleletterword == -1 ) { - $firstsingleletterword = $i; - // if $firstsingleletterword is set, we don't - // look at the other options, so we can bail early. - break; - } + $firstsingleletterword = $i; + // if $firstsingleletterword is set, we don't + // look at the other options, so we can bail early. + break; } else { if ( $firstmultiletterword == -1 ) { $firstmultiletterword = $i;