Code Duplication    Length = 5-5 lines in 2 locations

lib/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

lib/Php/PhpConverter.php 1 location

@@ 233-237 (lines=5) @@
230
            }
231
232
            $this->classes[spl_object_hash($type)]["skip"] = !!$this->getTypeAlias($type);
233
        } elseif ($force) {
234
            if (!($type instanceof SimpleType) && !$this->getTypeAlias($type)) {
235
                $this->classes[spl_object_hash($type)]["skip"] = false;
236
            }
237
        }
238
        return $this->classes[spl_object_hash($type)]["class"];
239
    }
240