Code Duplication    Length = 7-7 lines in 2 locations

src/Model/Common/AbstractJsonDeserializeObject.php 2 locations

@@ 127-133 (lines=7) @@
124
     * @param $type
125
     * @return bool
126
     */
127
    protected function isDeserializableType($type)
128
    {
129
        if (!is_string($type) || empty($type)) {
130
            return false;
131
        }
132
        return $this->hasInterface($type, static::JSON_DESERIALIZE_INTERFACE);
133
    }
134
135
    protected function isTypeableType($type)
136
    {
@@ 135-141 (lines=7) @@
132
        return $this->hasInterface($type, static::JSON_DESERIALIZE_INTERFACE);
133
    }
134
135
    protected function isTypeableType($type)
136
    {
137
        if (!is_string($type) || empty($type)) {
138
            return false;
139
        }
140
        return $this->hasInterface($type, static::TYPEABLE_INTERFACE);
141
    }
142
143
    protected function getTyped($offset)
144
    {