| Total Complexity | 2 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | class PaymentMethodsCredsController extends BaseController |
||
| 17 | { |
||
| 18 | /* |
||
| 19 | * fields we accept to create |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $createFields = []; |
||
| 24 | |||
| 25 | /* |
||
| 26 | * fields we accept to create |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected $updateFields = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * set objects. |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function onConstruct() |
||
| 38 | { |
||
| 39 | $this->model = new PaymentMethodsCreds(); |
||
| 40 | $this->additionalSearchFields = [ |
||
| 41 | ['is_deleted', ':', '0'], |
||
| 42 | ['users_id', ':', $this->userData->getId()], |
||
| 43 | ['companies_id', ':', '0|' . $this->userData->currentCompanyId()], |
||
| 44 | ['apps_id', ':', $this->app->getId()] |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get current payment methods creds |
||
| 50 | * |
||
| 51 | * @param mixed $id |
||
| 52 | * |
||
| 53 | * @method GET |
||
| 54 | * @url /v1/roles-acceslist/{id} |
||
| 55 | * |
||
| 56 | * @return Response |
||
| 57 | */ |
||
| 58 | public function getCurrentPaymentMethodsCreds(): Response |
||
| 61 | } |
||
| 62 | |||
| 65 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths