Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 613ade...e3d09d )
by
unknown
03:49
created

SolrSearchQuery::setOrderings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Kitodo\Dlf\Common\Solr;
4
5
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
6
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\ConstraintInterface;
7
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface;
8
use TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface;
9
10
/**
11
 * Targeted towards being used in ``PaginateController`` (``<f:widget.paginate>``).
12
 */
13
class SolrSearchQuery implements QueryInterface
14
{
15
    /**
16
     * @var SolrSearch
17
     * @access private
18
     */
19
    private $solrSearch;
20
21
    /**
22
     * @var int
23
     * @access private
24
     */
25
    private $limit;
26
27
    /**
28
     * @var int
29
     * @access private
30
     */
31
    private $offset;
32
33
    public function __construct($solrSearch)
34
    {
35
        $this->solrSearch = $solrSearch;
36
37
        $this->offset = 0;
38
        $this->limit = count($solrSearch);
39
    }
40
41
    public function getSource() {}
42
43
    public function execute($returnRawQueryResult = false)
44
    {
45
        $this->solrSearch->submit($this->offset, $this->limit);
46
47
        // solrSearch now only contains the results in range, indexed in [0, n)
48
        $result = [];
49
        $limit = min($this->limit, $this->solrSearch->getNumLoadedDocuments());
50
        for ($i = 0; $i < $limit; $i++) {
51
            $result[] = $this->solrSearch[$i];
52
        }
53
        return $result;
54
    }
55
56
    public function setOrderings(array $orderings) {}
57
58
    public function setLimit($limit)
59
    {
60
        $this->limit = $limit;
61
        return $this;
62
    }
63
64
    public function setOffset($offset)
65
    {
66
        $this->offset = $offset;
67
        return $this;
68
    }
69
70
    public function matching($constraint) {}
71
    public function logicalAnd($constraint1) {}
72
    public function logicalOr($constraint1) {}
73
    public function logicalNot(ConstraintInterface $constraint) {}
74
    public function equals($propertyName, $operand, $caseSensitive = true) {}
75
    public function like($propertyName, $operand) {}
76
    public function contains($propertyName, $operand) {}
77
    public function in($propertyName, $operand) {}
78
    public function lessThan($propertyName, $operand) {}
79
    public function lessThanOrEqual($propertyName, $operand) {}
80
    public function greaterThan($propertyName, $operand) {}
81
    public function greaterThanOrEqual($propertyName, $operand) {}
82
    public function getType() {}
83
    public function setQuerySettings(QuerySettingsInterface $querySettings) {}
84
    public function getQuerySettings() {}
85
86
    public function count()
87
    {
88
        // TODO?
89
    }
90
91
    public function getOrderings() {}
92
93
    public function getLimit()
94
    {
95
        return $this->limit;
96
    }
97
98
    public function getOffset()
99
    {
100
        return $this->offset;
101
    }
102
103
    public function getConstraint() {}
104
    public function isEmpty($propertyName) {}
105
    public function setSource(SourceInterface $source) {}
106
    public function getStatement() {}
107
}
108