Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1219-1224 (lines=6) @@
1216
                // This is a string, so it may be a type hint, but it could
1217
                // also be a constant used as a default value.
1218
                $prevComma = false;
1219
                for ($t = $i; $t >= $opener; $t--) {
1220
                    if ($tokens[$t]['code'] === T_COMMA) {
1221
                        $prevComma = $t;
1222
                        break;
1223
                    }
1224
                }
1225
1226
                if ($prevComma !== false) {
1227
                    $nextEquals = false;
@@ 1228-1233 (lines=6) @@
1225
1226
                if ($prevComma !== false) {
1227
                    $nextEquals = false;
1228
                    for ($t = $prevComma; $t < $i; $t++) {
1229
                        if ($tokens[$t]['code'] === T_EQUAL) {
1230
                            $nextEquals = $t;
1231
                            break;
1232
                        }
1233
                    }
1234
1235
                    if ($nextEquals !== false) {
1236
                        break;