Code Duplication    Length = 5-5 lines in 2 locations

src/Mapper/Json.php 2 locations

@@ 115-119 (lines=5) @@
112
                }
113
114
                $type = $this->removeNullable($type);
115
            } elseif ($jsonValue === null) {
116
                throw new \InvalidArgumentException(
117
                    'JSON property "' . $key . '" in class "' . $strClassName . '" must not be NULL'
118
                );
119
            }
120
121
            $type = $this->getFullNamespace($type, $strNs);
122
            $type = $this->getMappedType($type, $jsonValue);
@@ 163-167 (lines=5) @@
160
                continue;
161
            }
162
163
            if ($type === '') {
164
                throw new \InvalidArgumentException(
165
                    'Empty type at property "' . $strClassName . '::$' . $key . '"'
166
                );
167
            }
168
169
            $array = null;
170
            $subtype = null;