@@ -143,6 +143,9 @@ |
||
143 | 143 | return $newTokens; |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param \Closure $refactor |
|
148 | + */ |
|
146 | 149 | private static function recursiveRefactor($tokens, $refactor) |
147 | 150 | { |
148 | 151 | $i = $changes = 0; |
@@ -72,6 +72,9 @@ |
||
72 | 72 | return array($tokens, $changes); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @return string |
|
77 | + */ |
|
75 | 78 | private static function getKeyword($token) |
76 | 79 | { |
77 | 80 | return self::scopeKeywords[$token]; |
@@ -20,6 +20,10 @@ |
||
20 | 20 | } |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @param integer $elseCount |
|
25 | + * @param integer $ifBody |
|
26 | + */ |
|
23 | 27 | private static function shouldBeFlipped($elseCount, $ifBody) |
24 | 28 | { |
25 | 29 | $ifIsLonger = ($elseCount + 10) < $ifBody; |