Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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