Code Duplication    Length = 9-9 lines in 2 locations

src/Visitor/AddMagicCloneMethod.php 1 location

@@ 59-67 (lines=9) @@
56
    /**
57
     * @return Node\Stmt\Expression
58
     */
59
    private function buildCloneExpression(): Node\Stmt\Expression
60
    {
61
        return new Node\Stmt\Expression(
62
            new Node\Expr\Assign(
63
                Expressions::resolvePropertyFetch('this', $this->resolverProperty),
64
                new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->resolverProperty))
65
            )
66
        );
67
    }
68
}

src/Visitor/AddProxiedMethods.php 1 location

@@ 70-78 (lines=9) @@
67
    /**
68
     * @return Node\Stmt\Expression
69
     */
70
    private function buildCloneExpression(): Node\Stmt\Expression
71
    {
72
        return new Node\Stmt\Expression(
73
            new Node\Expr\Assign(
74
                Expressions::resolvePropertyFetch('this', $this->resolverProperty),
75
                new Node\Expr\Clone_(Expressions::resolvePropertyFetch('this', $this->resolverProperty))
76
            )
77
        );
78
    }
79
80
    /**
81
     * @param Node\Stmt\ClassMethod $method