Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 123-129 (lines=7) @@
120
            $fix   = $phpcsFile->addFixableError($error, $commentEnd, 'SpacingAfter');
121
            if ($fix === true) {
122
                $phpcsFile->fixer->beginChangeset();
123
                for ($i = ($prev + 1); $i < $commentEnd; $i++) {
124
                    if ($tokens[$i + 1]['line'] === $tokens[$commentEnd]['line']) {
125
                        break;
126
                    }
127
128
                    $phpcsFile->fixer->replaceToken($i, '');
129
                }
130
131
                $phpcsFile->fixer->endChangeset();
132
            }
@@ 220-226 (lines=7) @@
217
            $fix   = $phpcsFile->addFixableError($error, $firstTag, self::CODE_SPACING_BEFORE_TAGS);
218
            if ($fix === true) {
219
                $phpcsFile->fixer->beginChangeset();
220
                for ($i = ($prev + 1); $i < $firstTag; $i++) {
221
                    if ($tokens[$i]['line'] === $tokens[$firstTag]['line']) {
222
                        break;
223
                    }
224
225
                    $phpcsFile->fixer->replaceToken($i, '');
226
                }
227
228
                $indent = str_repeat(' ', $tokens[$stackPtr]['column']);
229
                $phpcsFile->fixer->addContent($prev, $phpcsFile->eolChar.$indent.'*'.$phpcsFile->eolChar);