Code Duplication    Length = 9-9 lines in 2 locations

src/Jms/YamlConverter.php 1 location

@@ 44-52 (lines=9) @@
41
42
    private $classes = [];
43
44
    public function convert(array $schemas)
45
    {
46
        $visited = array();
47
        $this->classes = array();
48
        foreach ($schemas as $schema) {
49
            $this->navigate($schema, $visited);
50
        }
51
        return $this->getTypes();
52
    }
53
54
    private function flattAttributes(AttributeContainer $container)
55
    {

src/Php/PhpConverter.php 1 location

@@ 52-60 (lines=9) @@
49
50
    private $classes = [];
51
52
    public function convert(array $schemas)
53
    {
54
        $visited = array();
55
        $this->classes = array();
56
        foreach ($schemas as $schema) {
57
            $this->navigate($schema, $visited);
58
        }
59
        return $this->getTypes();
60
    }
61
62
    /**
63
     *