Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1116-1121 (lines=6) @@
1113
                // This is a string, so it may be a type hint, but it could
1114
                // also be a constant used as a default value.
1115
                $prevComma = false;
1116
                for ($t = $i; $t >= $opener; $t--) {
1117
                    if ($tokens[$t]['code'] === T_COMMA) {
1118
                        $prevComma = $t;
1119
                        break;
1120
                    }
1121
                }
1122
1123
                if ($prevComma !== false) {
1124
                    $nextEquals = false;
@@ 1125-1130 (lines=6) @@
1122
1123
                if ($prevComma !== false) {
1124
                    $nextEquals = false;
1125
                    for ($t = $prevComma; $t < $i; $t++) {
1126
                        if ($tokens[$t]['code'] === T_EQUAL) {
1127
                            $nextEquals = $t;
1128
                            break;
1129
                        }
1130
                    }
1131
1132
                    if ($nextEquals !== false) {
1133
                        break;