| Total Complexity | 10 |
| Total Lines | 79 |
| Duplicated Lines | 0 % |
| Coverage | 52.63% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class FakeCodeRepo implements CodeRepositoryInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @inheritDoc |
||
| 15 | */ |
||
| 16 | 4 | public function save(Code $code): Code |
|
| 17 | { |
||
| 18 | 4 | return new Code(); |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritDoc |
||
| 23 | */ |
||
| 24 | public function delete(Code $code): void |
||
| 25 | { |
||
| 26 | |||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritDoc |
||
| 31 | */ |
||
| 32 | public function create(Code $code): Code |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function update(Code $code): Code |
||
| 41 | { |
||
| 42 | return $code; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritDoc |
||
| 47 | */ |
||
| 48 | public function getOneUnvalidatedByCode(string $code, Datetime $createdAfter = null): ?Code |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | 4 | public function getLastCodeForAddress(Address $address, Datetime $createdAfter = null): ?Code |
|
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @inheritDoc |
||
| 63 | */ |
||
| 64 | 4 | public function getCodesCountForAddress(Address $address, Datetime $createdAfter = null): ?int |
|
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @inheritDoc |
||
| 71 | */ |
||
| 72 | 1 | public function openTransaction(): void |
|
| 73 | { |
||
| 74 | |||
| 75 | 1 | } |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @inheritDoc |
||
| 79 | */ |
||
| 80 | 1 | public function commitTransaction(): void |
|
| 82 | |||
| 83 | 1 | } |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @inheritDoc |
||
| 87 | */ |
||
| 88 | public function rollbackTransaction(): void |
||
| 90 | |||
| 91 | } |
||
| 93 |
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