Skip to content

Commit

Permalink
magento#162 Reduced code around IF condition on seeTagRequired variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sinisa86 committed Apr 28, 2020
1 parent 029fada commit c6bc189
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Magento2/Helpers/Commenting/PHPDocFormattingValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6bc189

Please sign in to comment.