Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 179-185 (lines=7) @@
176
            $fix = $phpcsFile->addFixableError($error, $commentEnd, self::CODE_SPACING_AFTER);
177
            if ($fix) {
178
                $phpcsFile->fixer->beginChangeset();
179
                for ($i = ($prev + 1); $i < $commentEnd; $i++) {
180
                    if ($tokens[$i + 1]['line'] === $tokens[$commentEnd]['line']) {
181
                        break;
182
                    }
183
                    $phpcsFile->fixer->replaceToken($i, '');
184
                }
185
                $phpcsFile->fixer->endChangeset();
186
            }
187
        }
188
@@ 271-277 (lines=7) @@
268
            $fix = $phpcsFile->addFixableError($error, $firstTag, self::CODE_SPACING_BEFORE_TAGS);
269
            if ($fix === true) {
270
                $phpcsFile->fixer->beginChangeset();
271
                for ($i = ($prev + 1); $i < $firstTag; $i++) {
272
                    if ($tokens[$i]['line'] === $tokens[$firstTag]['line']) {
273
                        break;
274
                    }
275
                    $phpcsFile->fixer->replaceToken($i, '');
276
                }
277
278
                $indent = str_repeat(' ', $tokens[$stackPtr]['column']);
279
                $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar . $indent . '*' . $phpcsFile->eolChar);
280
                $phpcsFile->fixer->endChangeset();