Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1318-1323 (lines=6) @@
1315
            // it's likely to be an array which might have arguments in it. This
1316
            // could cause problems in our parsing below, so lets just skip to the
1317
            // end of it.
1318
            if (isset($tokens[$i]['parenthesis_opener']) === true) {
1319
                // Don't do this if it's the close parenthesis for the method.
1320
                if ($i !== $tokens[$i]['parenthesis_closer']) {
1321
                    $i = ($tokens[$i]['parenthesis_closer'] + 1);
1322
                }
1323
            }
1324
1325
            if (isset($tokens[$i]['bracket_opener']) === true) {
1326
                // Don't do this if it's the close parenthesis for the method.
@@ 1325-1330 (lines=6) @@
1322
                }
1323
            }
1324
1325
            if (isset($tokens[$i]['bracket_opener']) === true) {
1326
                // Don't do this if it's the close parenthesis for the method.
1327
                if ($i !== $tokens[$i]['bracket_closer']) {
1328
                    $i = ($tokens[$i]['bracket_closer'] + 1);
1329
                }
1330
            }
1331
1332
            switch ($tokens[$i]['code']) {
1333
                case T_BITWISE_AND: