Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 243-245 (lines=3) @@
240
     */
241
    private function checkCapitalLetter($shortContent, $long)
242
    {
243
        if (preg_match('/^\p{Ll}/u', $shortContent) === 1) {
244
            $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL);
245
        }
246
247
        if ($long !== false
248
            && $this->tokens[$long]['code'] === T_DOC_COMMENT_STRING
@@ 326-328 (lines=3) @@
323
        /** @var int $shortEnd */
324
        $shortEnd = $this->short;
325
326
        if (preg_match('/^\p{Ll}/u', $shortContent) === 1) {
327
            $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL);
328
        }
329
330
        $long = $this->phpcsFile->findNext($this->empty, $shortEnd + 1, $commentEnd - 1, true);
331