| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 7 | #[Override] |
|
| 45 | public function isEnemy(UserInterface $user, UserInterface $otherUser): bool |
||
| 46 | { |
||
| 47 | 7 | $enemyRelation = $this->enemyDeterminator->isEnemy($user, $otherUser); |
|
| 48 | 7 | if ($enemyRelation->isDominant()) { |
|
| 49 | 2 | return true; |
|
| 50 | } |
||
| 51 | |||
| 52 | 5 | $friendRelation = $this->friendDeterminator->isFriend($user, $otherUser); |
|
| 53 | 5 | if ($friendRelation->isDominant()) { |
|
| 54 | 2 | return false; |
|
| 55 | } |
||
| 56 | |||
| 57 | 3 | return $enemyRelation !== PlayerRelationTypeEnum::NONE; |
|
| 58 | } |
||
| 60 |
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