Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | #[Override] |
||
18 | public function findByUserAndViewContext(UserInterface $user, ViewContext $viewContext): array |
||
19 | { |
||
20 | return $this->getEntityManager()->createQuery( |
||
21 | sprintf( |
||
22 | 'SELECT ts FROM %s ts INDEX BY ts.id |
||
23 | WHERE EXISTS (SELECT ut FROM %s ut |
||
24 | JOIN %1$s ts2 |
||
25 | WITH ts2.id = ut.tutorial_step_id |
||
26 | WHERE ut.user = :user |
||
27 | AND ts2.module = :module |
||
28 | AND ts.view = :view)', |
||
29 | TutorialStep::class, |
||
30 | UserTutorial::class |
||
31 | ) |
||
32 | )->setParameters([ |
||
33 | 'user' => $user, |
||
34 | 'module' => $viewContext->getModule()->value, |
||
35 | 'view' => $viewContext->getViewIdentifier(), |
||
36 | ])->getResult(); |
||
37 | } |
||
54 |
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