| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function inflectPackageVars($vars) |
||
| 16 | { |
||
| 17 | $extra = $this->package->getExtra(); |
||
|
|
|||
| 18 | |||
| 19 | if (array_key_exists(self::EXTRA_TAO_EXTENSION_NAME, $extra)) { |
||
| 20 | $vars['name'] = $extra[self::EXTRA_TAO_EXTENSION_NAME]; |
||
| 21 | return $vars; |
||
| 22 | } |
||
| 23 | |||
| 24 | $vars['name'] = str_replace('extension-', '', $vars['name']); |
||
| 25 | $vars['name'] = str_replace('-', ' ', $vars['name']); |
||
| 26 | $vars['name'] = lcfirst(str_replace(' ', '', ucwords($vars['name']))); |
||
| 27 | |||
| 28 | return $vars; |
||
| 29 | } |
||
| 31 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.