| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 25 | public function findNoteById(string|int $id): NoteData |
|
| 24 | { |
||
| 25 | 25 | $query = $this->queryFactory->selectQuery()->select(['*'])->from('note')->where( |
|
| 26 | 25 | ['deleted_at IS' => null, 'id' => $id] |
|
| 27 | 25 | ); |
|
| 28 | 25 | $noteRow = $query->execute()->fetch('assoc') ?: []; |
|
| 29 | |||
| 30 | 25 | return new NoteData($noteRow); |
|
| 31 | } |
||
| 33 |
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