Code Duplication    Length = 8-8 lines in 2 locations

src/NodeGenerator.php 2 locations

@@ 72-79 (lines=8) @@
69
    /**
70
     * @return Expr
71
     */
72
    private function createObjectNode(): Expr
73
    {
74
        if (!$this->useQueryBuilderFactory) {
75
            return new StaticCall(new Name('ObjectNode'), 'create');
76
        }
77
78
        return new MethodCall(new Variable('qb'), 'objectNode');
79
    }
80
81
    /**
82
     * @return Expr
@@ 84-91 (lines=8) @@
81
    /**
82
     * @return Expr
83
     */
84
    private function createArrayNode(): Expr
85
    {
86
        if (!$this->useQueryBuilderFactory) {
87
            return new StaticCall(new Name('ArrayNode'), 'create');
88
        }
89
90
        return new MethodCall(new Variable('qb'), 'arrayNode');
91
    }
92
93
    /**
94
     * @param string|float|int|bool|null $value