Passed
Push — master ( 7ba2cb...1d30f9 )
by Peter
02:20
created

UserApiKeyRepo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPage() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Orm;
6
7
use AbterPhp\Admin\Domain\Entities\UserApiKey as Entity;
8
use AbterPhp\Admin\Orm\DataMappers\UserApiKeySqlDataMapper;
0 ignored issues
show
Bug introduced by
The type AbterPhp\Admin\Orm\DataM...UserApiKeySqlDataMapper was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use AbterPhp\Framework\Orm\IGridRepo;
10
use Opulence\Orm\Repositories\Repository;
11
12
class UserApiKeyRepo extends Repository implements IGridRepo
13
{
14
    /**
15
     * @param int      $limitFrom
16
     * @param int      $pageSize
17
     * @param string[] $orders
18
     * @param array    $conditions
19
     * @param array    $params
20
     *
21
     * @return Entity[]
22
     */
23
    public function getPage(int $limitFrom, int $pageSize, array $orders, array $conditions, array $params): array
24
    {
25
        /** @see UserApiKeySqlDataMapper::getPage() */
26
        return $this->getFromDataMapper('getPage', [$limitFrom, $pageSize, $orders, $conditions, $params]);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getFromDat... $conditions, $params)) could return the type object which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.
Loading history...
27
    }
28
}
29