Code Duplication    Length = 7-7 lines in 2 locations

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

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