| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function retrieveIdentity(string $token): Entity\Identity |
||
| 37 | { |
||
| 38 | $identity = new Entity\Identity; |
||
| 39 | $identity->setToken($token); |
||
| 40 | |||
| 41 | try { |
||
| 42 | $mapper = new Mapper\Identity($this->storage, $this->lifetime, $this->burndown); |
||
| 43 | $mapper->fetch($identity); |
||
| 44 | } catch (Exception\EntityNotFound $exception) { |
||
| 45 | throw new Exception\IdentityNotFound; |
||
| 46 | } |
||
| 47 | |||
| 48 | if (null === $identity->getActivationTime()) { |
||
| 49 | $identity->setActivationTime(new DateTimeImmutable); |
||
| 50 | $mapper->store($identity); |
||
| 51 | } |
||
| 52 | |||
| 53 | return $identity; |
||
| 54 | } |
||
| 56 |
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