Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1082-1087 (lines=6) @@
1079
            // it's likely to be an array which might have arguments in it. This
1080
            // could cause problems in our parsing below, so lets just skip to the
1081
            // end of it.
1082
            if (isset($tokens[$i]['parenthesis_opener']) === true) {
1083
                // Don't do this if it's the close parenthesis for the method.
1084
                if ($i !== $tokens[$i]['parenthesis_closer']) {
1085
                    $i = ($tokens[$i]['parenthesis_closer'] + 1);
1086
                }
1087
            }
1088
1089
            if (isset($tokens[$i]['bracket_opener']) === true) {
1090
                // Don't do this if it's the close parenthesis for the method.
@@ 1089-1094 (lines=6) @@
1086
                }
1087
            }
1088
1089
            if (isset($tokens[$i]['bracket_opener']) === true) {
1090
                // Don't do this if it's the close parenthesis for the method.
1091
                if ($i !== $tokens[$i]['bracket_closer']) {
1092
                    $i = ($tokens[$i]['bracket_closer'] + 1);
1093
                }
1094
            }
1095
1096
            switch ($tokens[$i]['code']) {
1097
            case T_BITWISE_AND: