Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | protected $resource; |
||
24 | |||
25 | /** |
||
26 | * Determine if a module exists. If it does, return the actual module name (not lowercased). |
||
27 | * @param string $requestedModuleName |
||
28 | * @return string |
||
|
|||
29 | * @throws \InvalidArgumentException When the module doesn't exist |
||
30 | */ |
||
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 | } |
||
66 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.