Code Duplication    Length = 3-3 lines in 2 locations

src/Sniffs/AbstractPatternSniff.php 2 locations

@@ 410-412 (lines=3) @@
407
                    if ($hasError === false && $pattern[($i - 1)]['type'] !== 'newline') {
408
                        // Make sure they only have 1 newline.
409
                        $prev = $phpcsFile->findPrevious($ignoreTokens, ($stackPtr - 1), null, true);
410
                        if ($prev !== false && $tokens[$prev]['line'] !== $tokens[$stackPtr]['line']) {
411
                            $hasError = true;
412
                        }
413
                    }
414
                }//end if
415
            }//end for
@@ 561-563 (lines=3) @@
558
                        // Even when ignoring comments, we are not allowed to include
559
                        // newlines without the pattern specifying them, so
560
                        // everything should be on the same line.
561
                        if ($tokens[$next]['line'] !== $tokens[$stackPtr]['line']) {
562
                            $hasError = true;
563
                        }
564
                    }//end if
565
566
                    if ($next !== $lastAddedStackPtr) {