| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Authentication |
||
| 10 | { |
||
| 11 | private $storage; |
||
| 12 | private $lifetime; |
||
| 13 | private $burndown; |
||
| 14 | |||
| 15 | public function __construct(Memcached $storage, int $lifetime, int $burndown) |
||
| 16 | { |
||
| 17 | $this->storage = $storage; |
||
| 18 | $this->lifetime = $lifetime; |
||
| 19 | $this->burndown = $burndown; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function createIdentity(int $accountId, string $payload): Entity\Identity |
||
| 23 | { |
||
| 24 | $identity = new Entity\Identity; |
||
| 25 | $identity->genrateToken(); |
||
| 26 | |||
| 27 | $identity->setAccountId($accountId); |
||
| 28 | $identity->setPayload($payload); |
||
| 29 | |||
| 30 | $mapper = new Mapper\Identity($this->storage, $this->lifetime, $this->burndown); |
||
|
|
|||
| 31 | $mapper->store($identity); |
||
| 32 | |||
| 33 | return $identity; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function retrieveIdentity(string $token): Entity\Identity |
||
| 54 | } |
||
| 55 | } |
||
| 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