Code Duplication    Length = 5-5 lines in 2 locations

src/Jms/YamlConverter.php 1 location

@@ 220-224 (lines=5) @@
217
                $this->classes[spl_object_hash($type)]["skip"] = true;
218
                return $class;
219
            }
220
        } elseif ($force) {
221
            if (!($type instanceof SimpleType) && !$this->getTypeAlias($type)) {
222
                $this->classes[spl_object_hash($type)]["skip"] = false;
223
            }
224
        }
225
        return $this->classes[spl_object_hash($type)]["class"];
226
    }
227

src/Php/PhpConverter.php 1 location

@@ 251-255 (lines=5) @@
248
            }
249
250
            $this->classes[spl_object_hash($type)]["skip"] = $skip || !!$this->getTypeAlias($type);
251
        } elseif ($force) {
252
            if (!($type instanceof SimpleType) && !$this->getTypeAlias($type)) {
253
                $this->classes[spl_object_hash($type)]["skip"] = false;
254
            }
255
        }
256
        return $this->classes[spl_object_hash($type)]["class"];
257
    }
258