diff --git a/Magento/Sniffs/Whitespace/EmptyLineMissedSniff.php b/Magento/Sniffs/Whitespace/EmptyLineMissedSniff.php deleted file mode 100644 index 9afd983b..00000000 --- a/Magento/Sniffs/Whitespace/EmptyLineMissedSniff.php +++ /dev/null @@ -1,68 +0,0 @@ -getTokens(); - if ($this->doCheck($phpcsFile, $stackPtr, $tokens)) { - $previous = $phpcsFile->findPrevious(T_WHITESPACE, $stackPtr - 1, null, true); - if ($tokens[$stackPtr]['line'] - $tokens[$previous]['line'] < 2) { - $error = 'Empty line missed'; - $phpcsFile->addWarning($error, $stackPtr, '', null); - } - } - } - - /** - * Execute empty line missed check. - * - * @param File $phpcsFile - * @param int $stackPtr - * @param array $tokens - * @return bool - */ - private function doCheck(File $phpcsFile, $stackPtr, $tokens) - { - $result = false; - if ($phpcsFile->hasCondition($stackPtr, T_CLASS) || $phpcsFile->hasCondition($stackPtr, T_INTERFACE)) { - $result = true; - } - - if ($phpcsFile->hasCondition($stackPtr, T_FUNCTION)) { - $result = false; - } - $previous = $phpcsFile->findPrevious(T_WHITESPACE, $stackPtr - 1, null, true); - if ($tokens[$previous]['type'] === 'T_OPEN_CURLY_BRACKET') { - $result = false; - } - - if (strpos($tokens[$stackPtr]['content'], '/**') === false) { - $result = false; - } - - return $result; - } -} diff --git a/Magento/ruleset.xml b/Magento/ruleset.xml index 74f2de2e..40336962 100644 --- a/Magento/ruleset.xml +++ b/Magento/ruleset.xml @@ -279,10 +279,6 @@ 6 warning - - 6 - warning - 6 warning