| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 37 | private function loadInternal(int $colonyId, bool $checkForEntityLock): ColonyInterface |
|
| 40 | { |
||
| 41 | 37 | if ($checkForEntityLock && $this->lockManager->isLocked($colonyId, LockTypeEnum::COLONY_GROUP)) { |
|
| 42 | 1 | throw new EntityLockedException('Tick läuft gerade, Zugriff auf Kolonie ist daher blockiert'); |
|
| 43 | } |
||
| 44 | |||
| 45 | 36 | $colony = $this->colonyRepository->find($colonyId); |
|
| 46 | 36 | if ($colony === null) { |
|
| 47 | 1 | throw new AccessViolation("Colony not existent!"); |
|
| 48 | } |
||
| 49 | |||
| 50 | 35 | return $colony; |
|
| 51 | } |
||
| 53 |
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