Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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