We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b82e31 commit 4bd4113Copy full SHA for 4bd4113
Magento2/Helpers/Commenting/PHPDocFormattingValidator.php
@@ -126,16 +126,11 @@ public function hasDeprecatedWellFormatted($commentStartPtr, $tokens)
126
if ($tokens[$deprecatedPtr + 2]['code'] !== T_DOC_COMMENT_STRING) {
127
$seeTagRequired = true;
128
}
129
-
130
$seePtr = $this->getTagPosition('@see', $commentStartPtr, $tokens);
131
if ($seePtr === -1) {
132
return !$seeTagRequired;
133
134
- if ($tokens[$seePtr + 2]['code'] !== T_DOC_COMMENT_STRING) {
135
- return false;
136
- }
137
138
- return true;
+ return $tokens[$seePtr + 2]['code'] === T_DOC_COMMENT_STRING;
139
140
141
/**
0 commit comments