| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function getMagentoModuleName($requestedModuleName) |
||
| 32 | { |
||
| 33 | $lowercaseModuleName = strtolower($requestedModuleName); |
||
| 34 | |||
| 35 | foreach ($this->getMagentoModuleList()->getAll() as $moduleName => $moduleInfo) { |
||
| 36 | if ($lowercaseModuleName === strtolower($moduleName)) { |
||
| 37 | return $moduleName; |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | throw new \InvalidArgumentException(sprintf('Module does not exist: "%s"', $requestedModuleName)); |
||
| 42 | } |
||
| 43 | |||
| 66 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.