Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1171-1176 (lines=6) @@
1168
                // This is a string, so it may be a type hint, but it could
1169
                // also be a constant used as a default value.
1170
                $prevComma = false;
1171
                for ($t = $i; $t >= $opener; $t--) {
1172
                    if ($tokens[$t]['code'] === T_COMMA) {
1173
                        $prevComma = $t;
1174
                        break;
1175
                    }
1176
                }
1177
1178
                if ($prevComma !== false) {
1179
                    $nextEquals = false;
@@ 1180-1185 (lines=6) @@
1177
1178
                if ($prevComma !== false) {
1179
                    $nextEquals = false;
1180
                    for ($t = $prevComma; $t < $i; $t++) {
1181
                        if ($tokens[$t]['code'] === T_EQUAL) {
1182
                            $nextEquals = $t;
1183
                            break;
1184
                        }
1185
                    }
1186
1187
                    if ($nextEquals !== false) {
1188
                        break;