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

@@ 239-243 (lines=5) @@
236
            }
237
238
            $this->classes[spl_object_hash($type)]["skip"] = !!$this->getTypeAlias($type);
239
        } elseif ($force) {
240
            if (!($type instanceof SimpleType) && !$this->getTypeAlias($type)) {
241
                $this->classes[spl_object_hash($type)]["skip"] = false;
242
            }
243
        }
244
        return $this->classes[spl_object_hash($type)]["class"];
245
    }
246