| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 2 | public function onConstruct() |
|
| 39 | { |
||
| 40 | 2 | $this->model = new CustomFields(); |
|
| 41 | 2 | $this->model->users_id = $this->userData->getId(); |
|
| 42 | 2 | $this->model->companies_id = $this->userData->default_company; |
|
| 43 | 2 | $this->model->apps_id = $this->app->getId(); |
|
| 44 | |||
| 45 | 2 | $this->additionalSearchFields = [ |
|
| 46 | 2 | ['apps_id', ':', $this->app->getId()], |
|
| 47 | 2 | ['companies_id', ':', $this->userData->default_company], |
|
| 48 | ]; |
||
| 51 |