Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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