Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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