Code Duplication    Length = 11-11 lines in 2 locations

src/Notifynder/Helpers/TypeChecker.php 2 locations

@@ 48-58 (lines=11) @@
45
        return false;
46
    }
47
48
    public static function isArray($value, $strict = true)
49
    {
50
        if (is_array($value) && count($value) > 0) {
51
            return true;
52
        }
53
54
        if ($strict) {
55
            throw new InvalidArgumentException('The value passed must be an array');
56
        }
57
        return false;
58
    }
59
60
    public static function isIterable($value, $strict = true)
61
    {
@@ 60-70 (lines=11) @@
57
        return false;
58
    }
59
60
    public static function isIterable($value, $strict = true)
61
    {
62
        if ((is_array($value) || $value instanceof Traversable) && count($value) > 0) {
63
            return true;
64
        }
65
66
        if ($strict) {
67
            throw new InvalidArgumentException('The value passed must be iterable');
68
        }
69
        return false;
70
    }
71
72
    public static function isNotification($notification, $strict = true)
73
    {