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.
Test Failed
Push — master ( b5e2c1...04b0c1 )
by Shobi
02:50 queued 54s
created

QueryCommand::quote()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Psonic\Commands\Search;
4
5
use Psonic\Commands\Command;
6
7
final class QueryCommand extends Command
8
{
9
    private $command    = 'QUERY';
10
    private $parameters = [];
11
12
    /**
13
     * QueryCommand constructor.
14
     * @param string $collection
15
     * @param string $bucket
16
     * @param string $terms
17
     * @param null $limit
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $limit is correct as it would always require null to be passed?
Loading history...
18
     */
19
    public function __construct(string $collection, string $bucket, string $terms, $limit = null)
20
    {
21
        $this->parameters = [
22
            'collection' => $collection,
23
            'bucket'     => $bucket,
24
            'terms'      => quote($terms),
25
            'limit'      => $limit,
26
        ];
27
28
        parent::__construct($this->command, $this->parameters);
29
    }
30
}