| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function getPlugins(array $params): array |
||
| 22 | { |
||
| 23 | $typeMethod = Str::studly($params['_type'] ?? 'default').'Plugins'; |
||
| 24 | |||
| 25 | if (method_exists($this, $typeMethod)) { |
||
| 26 | return $this->{$typeMethod}(); |
||
| 27 | } |
||
| 28 | |||
| 29 | throw new InvalidParamsException(Exception::SHORTCUT_MULTI_TYPE_ERROR, "Scan type [$typeMethod] not supported"); |
||
| 30 | } |
||
| 60 |