Code Duplication    Length = 9-9 lines in 2 locations

src/Expressions.php 2 locations

@@ 10-18 (lines=9) @@
7
8
class Expressions
9
{
10
    public static function unsetFunc(string $object, string $property): Node\Stmt\Expression
11
    {
12
        return new Node\Stmt\Expression(
13
            new Node\Expr\FuncCall(
14
                new Node\Name('unset'),
15
                [new Node\Arg(new Node\Expr\PropertyFetch(new Node\Expr\Variable($object), $property))]
16
            )
17
        );
18
    }
19
20
    public static function issetFunc(string $object, string $property): Node\Expr\FuncCall
21
    {
@@ 20-28 (lines=9) @@
17
        );
18
    }
19
20
    public static function issetFunc(string $object, string $property): Node\Expr\FuncCall
21
    {
22
        return
23
            new Node\Expr\FuncCall(
24
                new Node\Name('isset'),
25
                [new Node\Arg(new Node\Expr\PropertyFetch(new Node\Expr\Variable($object), $property))]
26
27
            );
28
    }
29
30
    public static function inConstArrayFunc(string $name, string $object, string $haystackConst): Node\Expr\FuncCall
31
    {