src/Mutator/ReturnValue/IntegerNegation.php
public function mutate(Node $node)
    {
        $integerValue = $node->expr instanceof Node\Expr\UnaryMinus
            ? -$node->expr->expr->value
            : $node->expr->value;

        return new Node\Stmt\Return_(
            new Node\Scalar\LNumber(-1 * $integerValue, $node->getAttributes())
        );
    }
public function mutate(Node $node)
    {
        $integerValue = $node->expr instanceof Node\Expr\UnaryMinus
            ? -$node->expr->expr->value
            : $node->expr->value;

        return new Node\Stmt\Return_(
            new Node\Scalar\LNumber(-1 * $integerValue, $node->getAttributes())
        );
    }
public function mutate ( Node $ node ) { $ integerValue = $ node -> expr instanceof Node \ Expr \ UnaryMinus ? - $ node -> expr -> expr -> value : $ node -> expr -> value ; return new Node \ Stmt \ Return_ ( new Node \ Scalar \ LNumber ( - 1 * $ integerValue , $ node -> getAttributes ( ) ) ) ; }
Replaces any integer with negated integer value.
Replaces "-5" with "5"


@return Node\Stmt\Return_
Replaces any integer with negated integer value . Replaces - 5 with 5