Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 314-322 (lines=9) @@
311
        }
312
    }
313
314
    public static function isCountable($value, $message = '')
315
    {
316
        if (!is_array($value) && !($value instanceof Countable)) {
317
            static::reportInvalidArgument(sprintf(
318
                $message ?: 'Expected a countable. Got: %s',
319
                static::typeToString($value)
320
            ));
321
        }
322
    }
323
324
    public static function isIterable($value, $message = '')
325
    {
@@ 324-332 (lines=9) @@
321
        }
322
    }
323
324
    public static function isIterable($value, $message = '')
325
    {
326
        if (!is_array($value) && !($value instanceof Traversable)) {
327
            static::reportInvalidArgument(sprintf(
328
                $message ?: 'Expected an iterable. Got: %s',
329
                static::typeToString($value)
330
            ));
331
        }
332
    }
333
334
    public static function isInstanceOf($value, $class, $message = '')
335
    {