diff --git a/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php b/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php index a656051c..fb98db7c 100644 --- a/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php +++ b/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php @@ -126,16 +126,11 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens) if ($tokens[$deprecatedPtr + 2]['code'] !== T_DOC_COMMENT_STRING) { $seeTagRequired = true; } - $seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens); if ($seePtr === -1) { return !$seeTagRequired; } - if ($tokens[$seePtr + 2]['code'] !== T_DOC_COMMENT_STRING) { - return false; - } - - return true; + return $tokens[$seePtr + 2]['code'] === T_DOC_COMMENT_STRING; } /**