Code Duplication    Length = 4-4 lines in 2 locations

src/Standards/BestIt/Sniffs/Commenting/MethodDocSniff.php 2 locations

@@ 175-178 (lines=4) @@
172
173
        $long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true);
174
        if ($long !== false && $tokens[$long]['code'] === T_DOC_COMMENT_STRING) {
175
            if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) {
176
                $error = 'Doc comment long description must start with a capital letter';
177
                $phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL);
178
            }
179
        }
180
181
        $long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true);
@@ 202-205 (lines=4) @@
199
                }
200
            }
201
202
            if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) {
203
                $error = 'Doc comment long description must start with a capital letter';
204
                $phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL);
205
            }
206
        }
207
208
        if (empty($tokens[$commentStart]['comment_tags']) === true) {