Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1150-1155 (lines=6) @@
1147
                // This is a string, so it may be a type hint, but it could
1148
                // also be a constant used as a default value.
1149
                $prevComma = false;
1150
                for ($t = $i; $t >= $opener; $t--) {
1151
                    if ($tokens[$t]['code'] === T_COMMA) {
1152
                        $prevComma = $t;
1153
                        break;
1154
                    }
1155
                }
1156
1157
                if ($prevComma !== false) {
1158
                    $nextEquals = false;
@@ 1159-1164 (lines=6) @@
1156
1157
                if ($prevComma !== false) {
1158
                    $nextEquals = false;
1159
                    for ($t = $prevComma; $t < $i; $t++) {
1160
                        if ($tokens[$t]['code'] === T_EQUAL) {
1161
                            $nextEquals = $t;
1162
                            break;
1163
                        }
1164
                    }
1165
1166
                    if ($nextEquals !== false) {
1167
                        break;