Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1131-1136 (lines=6) @@
1128
            // it's likely to be an array which might have arguments in it. This
1129
            // could cause problems in our parsing below, so lets just skip to the
1130
            // end of it.
1131
            if (isset($tokens[$i]['parenthesis_opener']) === true) {
1132
                // Don't do this if it's the close parenthesis for the method.
1133
                if ($i !== $tokens[$i]['parenthesis_closer']) {
1134
                    $i = ($tokens[$i]['parenthesis_closer'] + 1);
1135
                }
1136
            }
1137
1138
            if (isset($tokens[$i]['bracket_opener']) === true) {
1139
                // Don't do this if it's the close parenthesis for the method.
@@ 1138-1143 (lines=6) @@
1135
                }
1136
            }
1137
1138
            if (isset($tokens[$i]['bracket_opener']) === true) {
1139
                // Don't do this if it's the close parenthesis for the method.
1140
                if ($i !== $tokens[$i]['bracket_closer']) {
1141
                    $i = ($tokens[$i]['bracket_closer'] + 1);
1142
                }
1143
            }
1144
1145
            switch ($tokens[$i]['code']) {
1146
            case T_BITWISE_AND: