Code Duplication    Length = 11-11 lines in 2 locations

src/Facets/LengthTrait.php 2 locations

@@ 70-80 (lines=11) @@
67
        }
68
    }
69
70
    private function checkMaxLengthArray($v)
71
    {
72
        assert(is_array($v));
73
        $arrayLen = count($v);
74
        if ($arrayLen < $this->maxLength) {
75
            throw new \InvalidArgumentException(
76
                "the provided value for " . __CLASS__ . " is to short MaxLength: "
77
                . $this->maxLength
78
            );
79
        }
80
    }
81
82
    private function checkMaxLengthString($v)
83
    {
@@ 104-114 (lines=11) @@
101
        }
102
    }
103
104
    private function checkMinLengthArray($v)
105
    {
106
        assert(is_array($v));
107
        $arrayLen = count($v);
108
        if ($arrayLen > $this->minLength) {
109
            throw new \InvalidArgumentException(
110
                "the provided value for " . __CLASS__ . " is to long MinLength: "
111
                . $this->minLength
112
            );
113
        }
114
    }
115
116
    private function checkMinLengthString($v)
117
    {