| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class FactionRepository extends EntityRepository implements FactionRepositoryInterface |
||
| 18 | { |
||
| 19 | #[Override] |
||
| 24 | ]); |
||
| 25 | } |
||
| 26 | |||
| 27 | 1 | #[Override] |
|
| 28 | public function getPlayableFactionsPlayerCount(): array |
||
| 29 | { |
||
| 30 | 1 | return $this |
|
| 31 | 1 | ->getEntityManager() |
|
| 32 | 1 | ->createQuery( |
|
| 33 | 1 | sprintf( |
|
| 34 | 1 | 'SELECT |
|
| 35 | f as faction, COUNT(u.id) as count |
||
| 36 | FROM %s f INDEX BY f.id LEFT JOIN %s u WITH u.race = f.id AND u.id >= :firstUserId |
||
| 37 | WHERE f.chooseable = :chooseable |
||
| 38 | GROUP BY f.id |
||
| 39 | 1 | ORDER BY f.id', |
|
| 40 | 1 | Faction::class, |
|
| 41 | 1 | User::class |
|
| 42 | 1 | ) |
|
| 43 | 1 | ) |
|
| 44 | 1 | ->setParameters([ |
|
| 45 | 1 | 'chooseable' => true, |
|
| 46 | 1 | 'firstUserId' => UserEnum::USER_FIRST_ID |
|
| 47 | 1 | ]) |
|
| 48 | 1 | ->getResult(); |
|
| 49 | } |
||
| 50 | |||
| 51 | #[Override] |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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