Code Duplication    Length = 7-7 lines in 2 locations

src/Validation/Validation.php 2 locations

@@ 261-267 (lines=7) @@
258
        ];
259
260
        if (is_array($type)) {
261
            foreach ($type as $value) {
262
                $regex = $cards['all'][strtolower($value)];
263
264
                if (static::_check($check, $regex)) {
265
                    return static::luhn($check);
266
                }
267
            }
268
        } elseif ($type === 'all') {
269
            foreach ($cards['all'] as $value) {
270
                $regex = $value;
@@ 269-275 (lines=7) @@
266
                }
267
            }
268
        } elseif ($type === 'all') {
269
            foreach ($cards['all'] as $value) {
270
                $regex = $value;
271
272
                if (static::_check($check, $regex)) {
273
                    return static::luhn($check);
274
                }
275
            }
276
        } else {
277
            $regex = $cards['fast'];
278