| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3.0123 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | protected function execAddNS() |
||
| 44 | { |
||
| 45 | 1 | $annotList = $this->annotReader->getAnnotationList(); |
|
|
|
|||
| 46 | |||
| 47 | 1 | if (array_key_exists('AddNS', $annotList) === false) { |
|
| 48 | return; |
||
| 49 | } |
||
| 50 | |||
| 51 | 1 | $nsList = $annotList['AddNS']; |
|
| 52 | 1 | foreach ($nsList as $infoObj) { |
|
| 53 | 1 | $ns = new AddNS( |
|
| 54 | 1 | $this->parserManager->getReader(), |
|
| 55 | 1 | $this->obtainItemName(), |
|
| 56 | $infoObj |
||
| 57 | ); |
||
| 58 | |||
| 59 | 1 | $this->parserManager->addImportedNS($ns->getNs(), $ns->getAlias()); |
|
| 60 | } |
||
| 63 |
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.