packages/Symfony/src/Rector/Yaml/ParseFileRector.php
public function refactor(Node $node): ?Node
    {
        if (! $this->isName($node, 'parse')) {
            return null;
        }

        if (! $this->isType($node->class, 'Symfony\Component\Yaml\Yaml')) {
            return null;
        }

        if (! $this->isArgumentYamlFile($node)) {
            return null;
        }

        $fileGetContentsFunCallNode = $this->createFunction('file_get_contents', [$node->args[0]]);
        $node->args[0] = new Arg($fileGetContentsFunCallNode);

        return $node;
    }
public function refactor(Node $node): ?Node
    {
        if (! $this->isName($node, 'parse')) {
            return null;
        }

        if (! $this->isType($node->class, 'Symfony\Component\Yaml\Yaml')) {
            return null;
        }

        if (! $this->isArgumentYamlFile($node)) {
            return null;
        }

        $fileGetContentsFunCallNode = $this->createFunction('file_get_contents', [$node->args[0]]);
        $node->args[0] = new Arg($fileGetContentsFunCallNode);

        return $node;
    }
public function refactor ( Node $ node ) : ? Node { if ( ! $ this -> isName ( $ node , 'parse' ) ) { return null ; } if ( ! $ this -> isType ( $ node -> class , 'Symfony\Component\Yaml\Yaml' ) ) { return null ; } if ( ! $ this -> isArgumentYamlFile ( $ node ) ) { return null ; } $ fileGetContentsFunCallNode = $ this -> createFunction ( 'file_get_contents' , [ $ node -> args [ 0 ] ] ) ; $ node -> args [ 0 ] = new Arg ( $ fileGetContentsFunCallNode ) ; return $ node ; }
Process Node of matched type

@param StaticCall $node
Process Node of matched type