Skip to content

Commit c6bc189

Browse files
committed
magento#162 Reduced code around IF condition on seeTagRequired variable
1 parent 029fada commit c6bc189

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Magento2/Helpers/Commenting/PHPDocFormattingValidator.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,7 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
129129

130130
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
131131
if ($seePtr === -1) {
132-
if ($seeTagRequired) {
133-
return false;
134-
} else {
135-
return true;
136-
}
132+
return !$seeTagRequired;
137133
}
138134
if ($tokens[$seePtr + 2]['code'] !== T_DOC_COMMENT_STRING) {
139135
return false;

0 commit comments

Comments
 (0)