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