TASK: Fix cgl

* Fix phpcs and phpmd issues.
This commit is contained in:
Daniel Siepmann 2017-05-02 10:52:53 +02:00
parent dffcac2bd5
commit 31d66c17d0
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 4 additions and 4 deletions

View file

@ -91,13 +91,13 @@ class Typo3Update_Sniffs_Removed_TypoScriptSniff extends AbstractGenericUsage
{
$tokens = $phpcsFile->getTokens();
$token = $tokens[$stackPtr];
$objectIdentifiersToLoopUp = [$token['content']];
$identifiersToCheck = [$token['content']];
if (isset($token[FQObjectIdentifier::IDENTIFIER]) && $token[FQObjectIdentifier::IDENTIFIER] !== $token['content']) {
$objectIdentifiersToLoopUp[] = $token[FQObjectIdentifier::IDENTIFIER];
$identifiersToCheck[] = $token[FQObjectIdentifier::IDENTIFIER];
}
foreach ($objectIdentifiersToLoopUp as $objectIdentifier) {
foreach ($identifiersToCheck as $objectIdentifier) {
if (isset($this->configured[$objectIdentifier]) && $token['type'] === $this->configured[$objectIdentifier]['type']) {
$this->removed = [
$this->configured[$objectIdentifier]

View file

@ -132,7 +132,7 @@ class FqObjectIdentifierTest extends TestCase
/**
* @test
*/
public function AddingPathSegmentAfterAnotherResetsPath()
public function addingPathSegmentAfterAnotherResetsPath()
{
$initialToken = [
'type' => TokenInterface::TYPE_OBJECT_IDENTIFIER,