ExplicitPublicClassMethodRector

Add explicit public method visibility.

 class SomeClass
 {
-    function foo()
+    public function foo()
     {
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Visibility\Rector\ClassMethod\ExplicitPublicClassMethodRector;

return RectorConfig::configure()
    ->withRules([
        ExplicitPublicClassMethodRector::class,
    ]);
SETS:  Coding Style