@@ -72,8 +72,9 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $class = new ReflectionClass($source); |
| 74 | 74 | |
| 75 | - if (!preg_match('~^(is|has)[A-Z]~', $name) || !$class->hasMethod($name)) |
|
| 76 | - $name = 'get' . ucfirst($name); |
|
| 75 | + if (!preg_match('~^(is|has)[A-Z]~', $name) || !$class->hasMethod($name)) { |
|
| 76 | + $name = 'get' . ucfirst($name); |
|
| 77 | + } |
|
| 77 | 78 | |
| 78 | 79 | if ($class->hasMethod($name)) { |
| 79 | 80 | $method = $class->getMethod($name); |