| @@ -178,7 +178,7 @@ discard block | ||
| 178 | 178 | */ | 
| 179 | 179 | protected static function isRuleDefined(&$rules, $names) | 
| 180 | 180 |      { | 
| 181 | -        foreach ((array)$names as $key) { | |
| 181 | +        foreach ((array) $names as $key) { | |
| 182 | 182 |              if (!isset($rules[$key])) { | 
| 183 | 183 | return false; | 
| 184 | 184 | } | 
| @@ -189,7 +189,7 @@ discard block | ||
| 189 | 189 | |
| 190 | 190 | protected static function undefineRule(&$rules, $names) | 
| 191 | 191 |      { | 
| 192 | -        foreach ((array)$names as $key) { | |
| 192 | +        foreach ((array) $names as $key) { | |
| 193 | 193 | unset($rules[$key]); | 
| 194 | 194 | } | 
| 195 | 195 | } | 
| @@ -276,7 +276,7 @@ discard block | ||
| 276 | 276 | public function __toString() | 
| 277 | 277 |      { | 
| 278 | 278 |          try { | 
| 279 | - return (string)$this->getRootParser(); | |
| 279 | + return (string) $this->getRootParser(); | |
| 280 | 280 |          } catch (Exception $e) { | 
| 281 | 281 | // ignore | 
| 282 | 282 | } |