| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function getMagentoModuleName($requestedModuleName) |
||
| 32 | { |
||
| 33 | $lowercaseModuleName = strtolower($requestedModuleName); |
||
| 34 | foreach ($this->getMagentoModuleList()->getAll() as $moduleName => $moduleInfo) { |
||
| 35 | if ($lowercaseModuleName === strtolower($moduleName)) { |
||
| 36 | return $moduleName; |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | throw new \InvalidArgumentException(sprintf('Module does not exist: "%s"', $requestedModuleName)); |
||
| 41 | } |
||
| 42 | |||
| 65 |
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.