Code Duplication    Length = 13-13 lines in 2 locations

src/Php/ClassGenerator.php 1 location

@@ 40-52 (lines=13) @@
37
        return true;
38
    }
39
40
    private function isNativeType(PHPClass $class)
41
    {
42
        return !$class->getNamespace() && in_array($class->getName(), [
43
            'string',
44
            'int',
45
            'float',
46
            'integer',
47
            'boolean',
48
            'array',
49
            'mixed',
50
            'callable'
51
        ]);
52
    }
53
54
    private function handleValueMethod(Generator\ClassGenerator $generator, PHPProperty $prop, PHPClass $class, $all = true)
55
    {

src/Php/Structure/PHPClass.php 1 location

@@ 53-65 (lines=13) @@
50
        return "\\" . $this->getFullName();
51
    }
52
53
    public function isNativeType()
54
    {
55
        return !$this->getNamespace() && in_array($this->getName(), [
56
            'string',
57
            'int',
58
            'float',
59
            'integer',
60
            'boolean',
61
            'array',
62
            'mixed',
63
            'callable'
64
        ]);
65
    }
66
67
68
    public function __construct($name = null, $namespace = null)