Skip to content

Commit

Permalink
Fixed PHPCS whitespaces (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
wimg authored and jrfnl committed Dec 14, 2017
1 parent c0fd67b commit 4c7abf1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Expand Up @@ -61,7 +61,7 @@ public function process(\PHP_CodeSniffer_File $phpcsFile, $stackPtr)
}

$funcName = $phpcsFile->getDeclarationName($stackPtr);

if (strtolower($funcName) !== '__autoload') {
return;
}
Expand Down
Expand Up @@ -30,7 +30,7 @@ class DeprecatedMagicAutoloadSniffTest extends BaseSniffTest
* @var bool
*/
protected static $recognizesTraitsOrInterfaces = true;

/**
* Set up skip condition.
*
Expand All @@ -44,7 +44,6 @@ public static function setUpBeforeClass()
}
parent::setUpBeforeClass();
}


/**
* Test __autoload deprecation not causing issue in 7.1.
Expand All @@ -56,7 +55,7 @@ public function testNoViolationsInFileOnValidVersion()
$file = $this->sniffFile(self::TEST_FILE, '7.1');
$this->assertNoViolation($file);
}

/**
* Test __autoload deprecation.
*
Expand Down Expand Up @@ -85,7 +84,7 @@ public function dataIsDeprecated()
array(3),
);
}

/**
* Test not affected __autoload declarations.
*
Expand All @@ -103,11 +102,11 @@ public function testIsNotAffected($testFile, $line, $isTrait)
$this->markTestSkipped('Traits are not recognized on PHPCS < 2.4.0 in combination with PHP < 5.4');
return;
}

$file = $this->sniffFile($testFile, '7.2');
$this->assertNoViolation($file, $line);
}

/**
* dataIsDeprecated
*
Expand All @@ -129,5 +128,4 @@ public function dataIsNotAffected()
array(self::TEST_FILE_NAMESPACED, 26, false),
);
}

}

0 comments on commit 4c7abf1

Please sign in to comment.