Configurable

MethodCallToFuncCallRector

Change method call to function call

 final class SomeClass
 {
     public function show()
     {
-        return $this->render('some_template');
+        return view('some_template');
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Transform\Rector\MethodCall\MethodCallToFuncCallRector;
use Rector\Transform\ValueObject\MethodCallToFuncCall;

return RectorConfig::configure()
    ->withConfiguredRule(MethodCallToFuncCallRector::class, [
        new MethodCallToFuncCall('SomeClass', 'render', 'view'),
    ]);