Conditions | 3 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
30 | 2 | public function store(Password $password, bool $allowOverwrite = false): void |
|
31 | { |
||
32 | 2 | if (!$allowOverwrite && $this->get($password->getId())) { |
|
33 | 1 | throw new PhPsstException('The ID already exists', PhPsstException::ID_IS_ALREADY_TAKEN); |
|
34 | } |
||
35 | 1 | $this->client->set($password->getId(), $password->getJson()); |
|
36 | 1 | $this->client->expireat($password->getId(), $password->getTtl()); |
|
37 | } |
||
54 |
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