| Conditions | 5 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 7 | #[Override] |
|
| 29 | public function checkDatabaseItem(?int $databaseEntryId, User $user): void |
||
| 30 | { |
||
| 31 | if ( |
||
| 32 | 7 | $databaseEntryId === null |
|
| 33 | 7 | || $databaseEntryId < 1 |
|
| 34 | ) { |
||
| 35 | 4 | return; |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | if (!$this->databaseUserRepository->exists($user->getId(), $databaseEntryId)) { |
|
| 39 | 1 | $entry = $this->createDatabaseEntry->createDatabaseEntryForUser($user, $databaseEntryId); |
|
| 40 | |||
| 41 | 1 | if ($entry !== null) { |
|
| 42 | 1 | self::$achievements[] = sprintf( |
|
| 43 | 1 | 'Neuer Datenbankeintrag: %s (+%d Punkte)', |
|
| 44 | 1 | $entry->getDescription(), |
|
| 45 | 1 | $entry->getCategory()->getPoints() |
|
| 46 | 1 | ); |
|
| 57 |
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