From e7dbac4d33d822f2d2e429aa39ad2ccdda3f8c89 Mon Sep 17 00:00:00 2001
From: Daniel Siepmann <coding@daniel-siepmann.de>
Date: Thu, 13 Apr 2017 13:31:32 +0200
Subject: [PATCH] TASK: Cleanup php code

* Adjust variable name, as this is generic and not about constants.
---
 .../Sniffs/Removed/AbstractGenericUsage.php      | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php b/src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
index 13697f0..87e5caf 100644
--- a/src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
+++ b/src/Standards/Typo3Update/Sniffs/Removed/AbstractGenericUsage.php
@@ -45,7 +45,7 @@ abstract class AbstractGenericUsage implements PhpCsSniff
     protected $configured = [];
 
     /**
-     * Constant for the current sniff instance.
+     * Entries removed in current sniff.
      * @var array
      */
     protected $removed = [];
@@ -203,16 +203,16 @@ abstract class AbstractGenericUsage implements PhpCsSniff
      */
     protected function addMessage(PhpCsFile $phpcsFile, $tokenPosition)
     {
-        foreach ($this->removed as $constant) {
+        foreach ($this->removed as $removed) {
             $phpcsFile->addWarning(
                 'Legacy calls are not allowed; found %s. Removed in %s. %s. See: %s',
                 $tokenPosition,
-                $this->getIdentifier($constant),
+                $this->getIdentifier($removed),
                 [
-                    $this->getOldUsage($constant),
-                    $this->getRemovedVersion($constant),
-                    $this->getReplacement($constant),
-                    $this->getDocsUrl($constant),
+                    $this->getOldUsage($removed),
+                    $this->getRemovedVersion($removed),
+                    $this->getReplacement($removed),
+                    $this->getDocsUrl($removed),
                 ]
             );
         }
@@ -283,7 +283,7 @@ abstract class AbstractGenericUsage implements PhpCsSniff
     /**
      * Allow user to lookup the official docs related to this deprecation / breaking change.
      *
-     * @param array $config The converted structure for a single constant.
+     * @param array $config
      *
      * @return string
      */
-- 
GitLab