| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class PermissionController extends BaseController |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Initialize. |
||
| 17 | * Set viewPath and validateComponent. |
||
| 18 | */ |
||
| 19 | public function init() |
||
| 20 | { |
||
| 21 | $this->viewPath = '@rbac/views/permissions'; |
||
| 22 | |||
| 23 | $this->validateComponent = $this->module->get('rbac-validate-component'); |
||
| 24 | |||
| 25 | parent::init(); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns Permission model name. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | protected function getModelName():string |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns PermissionSearch model name. |
||
| 40 | * |
||
| 41 | * @return string|null |
||
| 42 | */ |
||
| 43 | protected function getSearchModelName():string |
||
| 44 | { |
||
| 45 | return PermissionSearch::class; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns new object of search main model. |
||
| 50 | * |
||
| 51 | * @return mixed |
||
| 52 | */ |
||
| 53 | protected function getNewSearchModel() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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.