TASK: Fix cgl
* Fix phpcs and phpmd issues.
This commit is contained in:
parent
dffcac2bd5
commit
31d66c17d0
2 changed files with 4 additions and 4 deletions
|
@ -91,13 +91,13 @@ class Typo3Update_Sniffs_Removed_TypoScriptSniff extends AbstractGenericUsage
|
||||||
{
|
{
|
||||||
$tokens = $phpcsFile->getTokens();
|
$tokens = $phpcsFile->getTokens();
|
||||||
$token = $tokens[$stackPtr];
|
$token = $tokens[$stackPtr];
|
||||||
$objectIdentifiersToLoopUp = [$token['content']];
|
$identifiersToCheck = [$token['content']];
|
||||||
|
|
||||||
if (isset($token[FQObjectIdentifier::IDENTIFIER]) && $token[FQObjectIdentifier::IDENTIFIER] !== $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']) {
|
if (isset($this->configured[$objectIdentifier]) && $token['type'] === $this->configured[$objectIdentifier]['type']) {
|
||||||
$this->removed = [
|
$this->removed = [
|
||||||
$this->configured[$objectIdentifier]
|
$this->configured[$objectIdentifier]
|
||||||
|
|
|
@ -132,7 +132,7 @@ class FqObjectIdentifierTest extends TestCase
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
*/
|
*/
|
||||||
public function AddingPathSegmentAfterAnotherResetsPath()
|
public function addingPathSegmentAfterAnotherResetsPath()
|
||||||
{
|
{
|
||||||
$initialToken = [
|
$initialToken = [
|
||||||
'type' => TokenInterface::TYPE_OBJECT_IDENTIFIER,
|
'type' => TokenInterface::TYPE_OBJECT_IDENTIFIER,
|
||||||
|
|
Loading…
Reference in a new issue