| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | final class PostRepository extends Select\Repository |
||
| 13 | { |
||
| 14 | private ORMInterface $orm; |
||
| 15 | |||
| 16 | public function __construct(Select $select, ORMInterface $orm) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @psalm-return EntityReader<array-key, Post> |
||
| 24 | */ |
||
| 25 | public function findAll(array $scope = [], array $orderBy = []): EntityReader |
||
| 26 | { |
||
| 27 | /** @psalm-var EntityReader<array-key, Post> */ |
||
| 28 | return new EntityReader( |
||
| 29 | $this |
||
| 30 | ->select() |
||
| 31 | ->where($scope) |
||
| 32 | ->orderBy($orderBy) |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function save(Post $user): void |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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