Find a Rector rule

Find the best Rector rule to solve your problem. Searching through 1109 rules.

Found 2 rules, grouped by set: Clear

PHP 5.2 2 matches

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;
     }
 }