diff --git a/Magento2/Sniffs/Namespaces/ImportsFromTestNamespaceSniff.php b/Magento2/Sniffs/Namespaces/ImportsFromTestNamespaceSniff.php index 8d976b4b..3e5dbce7 100644 --- a/Magento2/Sniffs/Namespaces/ImportsFromTestNamespaceSniff.php +++ b/Magento2/Sniffs/Namespaces/ImportsFromTestNamespaceSniff.php @@ -14,7 +14,6 @@ */ class ImportsFromTestNamespaceSniff implements Sniff { - /** * @var string */ @@ -53,7 +52,7 @@ public function process(File $phpcsFile, $stackPtr) && $tokens[$next]['code'] !== T_SEMICOLON && $tokens[$next]['code'] !== T_CLOSE_TAG ) { - $baseUse = rtrim($phpcsFile->getTokensAsString($stackPtr, ($next - $stackPtr))); + $baseUse = rtrim($phpcsFile->getTokensAsString($stackPtr, ($next - $stackPtr))); $baseUse = str_replace('use \\', '', $baseUse); $closingCurly = $phpcsFile->findNext(T_CLOSE_USE_GROUP, ($next + 1)); do { @@ -64,7 +63,7 @@ public function process(File $phpcsFile, $stackPtr) $phpcsFile->addWarning($this->warningMessage, $stackPtr, $this->warningCode); return; } - } while ($next != false); + } while ($next !== false); } } }