VarToPublicPropertyRector

Change property modifier from var to public

 final class SomeController
 {
-    var $name = 'Tom';
+    public $name = 'Tom';
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Php52\Rector\Property\VarToPublicPropertyRector;

return RectorConfig::configure()
    ->withRules([
        VarToPublicPropertyRector::class,
    ]);
SETS:  Code Quality