Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 818-823 (lines=6) @@
815
            // it's likely to be an array which might have arguments in it. This
816
            // could cause problems in our parsing below, so lets just skip to the
817
            // end of it.
818
            if (isset($tokens[$i]['parenthesis_opener']) === true) {
819
                // Don't do this if it's the close parenthesis for the method.
820
                if ($i !== $tokens[$i]['parenthesis_closer']) {
821
                    $i = ($tokens[$i]['parenthesis_closer'] + 1);
822
                }
823
            }
824
825
            if (isset($tokens[$i]['bracket_opener']) === true) {
826
                // Don't do this if it's the close parenthesis for the method.
@@ 825-830 (lines=6) @@
822
                }
823
            }
824
825
            if (isset($tokens[$i]['bracket_opener']) === true) {
826
                // Don't do this if it's the close parenthesis for the method.
827
                if ($i !== $tokens[$i]['bracket_closer']) {
828
                    $i = ($tokens[$i]['bracket_closer'] + 1);
829
                }
830
            }
831
832
            switch ($tokens[$i]['code']) {
833
            case T_BITWISE_AND: