| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function query(): Builder |
||
| 14 | { |
||
| 15 | return Person::selectRaw(' |
||
| 16 | people.id, people.title, people.givn, people.surn, people.appellative, people.email, people.phone, |
||
| 17 | people.birthday, CASE WHEN users.id is null THEN 0 ELSE 1 END as "user", |
||
| 18 | companies.name as company, people.created_at |
||
| 19 | ')->leftJoin('users', 'people.id', '=', 'users.person_id') |
||
| 20 | ->leftJoin( |
||
| 21 | 'company_person', |
||
| 22 | fn ($join) => $join |
||
| 23 | ->on('people.id', '=', 'company_person.person_id') |
||
| 24 | ->where('company_person.is_main', true) |
||
| 25 | )->leftJoin('companies', 'company_person.company_id', 'companies.id') |
||
| 26 | ->where('people.id', Auth::user()->person_id); |
||
| 27 | } |
||
| 29 |
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