aboutsummaryrefslogtreecommitdiffstats
path: root/includes/tidy
diff options
context:
space:
mode:
authorWMDE-Fisch <christoph.jauera@wikimedia.de>2017-08-11 15:53:17 +0200
committerWMDE-Fisch <christoph.jauera@wikimedia.de>2017-08-11 22:27:51 +0200
commit6df9ed1ad68c92b5e7364038ef3932c4739eb86e (patch)
treed4f9910db1b44f8747709a786d575741128dfcec /includes/tidy
parent749d64bbe7bb6d651257027c9dbad65051e57a80 (diff)
downloadmediawikicore-6df9ed1ad68c92b5e7364038ef3932c4739eb86e.tar.gz
mediawikicore-6df9ed1ad68c92b5e7364038ef3932c4739eb86e.zip
update mediawiki-codesniffer to 0.11.0 and fix issues
- mostly auto fixes - some too long lines fixed - ignore amp space in one case passing by reference Change-Id: I6472f83bc3cbf4bd629d83050cc3319b19ec465c
Diffstat (limited to 'includes/tidy')
-rw-r--r--includes/tidy/Balancer.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/tidy/Balancer.php b/includes/tidy/Balancer.php
index 4852ce5211cf..b29a3afbd424 100644
--- a/includes/tidy/Balancer.php
+++ b/includes/tidy/Balancer.php
@@ -1203,7 +1203,7 @@ class BalanceStack implements IteratorAggregate {
$furthestBlock = null;
$furthestBlockIndex = -1;
$stackLength = $this->length();
- for ( $i = $index+1; $i < $stackLength; $i++ ) {
+ for ( $i = $index + 1; $i < $stackLength; $i++ ) {
if ( $this->node( $i )->isA( BalanceSets::$specialSet ) ) {
$furthestBlock = $this->node( $i );
$furthestBlockIndex = $i;
@@ -1225,7 +1225,7 @@ class BalanceStack implements IteratorAggregate {
// Let the common ancestor be the element immediately above
// the formatting element in the stack of open elements.
- $ancestor = $this->node( $index-1 );
+ $ancestor = $this->node( $index - 1 );
// Let a bookmark note the position of the formatting
// element in the list of active formatting elements
@@ -2116,7 +2116,7 @@ class Balancer {
return $this->insertToken( $token, $value, $attribs, $selfClose );
}
// "Any other start tag"
- $adjusted = ( $this->fragmentContext && $this->stack->length()===1 ) ?
+ $adjusted = ( $this->fragmentContext && $this->stack->length() === 1 ) ?
$this->fragmentContext : $this->stack->currentNode;
$this->stack->insertForeignElement(
$adjusted->namespaceURI, $value, $attribs
@@ -2242,7 +2242,7 @@ class Balancer {
private function switchMode( $mode ) {
Assert::parameter(
- substr( $mode, -4 )==='Mode', '$mode', 'should end in Mode'
+ substr( $mode, -4 ) === 'Mode', '$mode', 'should end in Mode'
);
$oldMode = $this->parseMode;
$this->parseMode = $mode;
@@ -2267,8 +2267,8 @@ class Balancer {
switch ( $node->localName ) {
case 'select':
$stackLength = $this->stack->length();
- for ( $j = $i + 1; $j < $stackLength-1; $j++ ) {
- $ancestor = $this->stack->node( $stackLength-$j-1 );
+ for ( $j = $i + 1; $j < $stackLength - 1; $j++ ) {
+ $ancestor = $this->stack->node( $stackLength - $j - 1 );
if ( $ancestor->isHtmlNamed( 'template' ) ) {
break;
}