Find the best Rector rule to solve your problem. Searching through 1011 rules.
Found 2 rules:
Change property modifier from var to public
final class SomeController
{
- var $name = 'Tom';
+ public $name = 'Tom';
}
Use break instead of continue in switch statements
function some_run($value)
{
switch ($value) {
case 1:
echo 'Hi';
- continue;
+ break;
case 2:
echo 'Hello';
break;
}
}