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.

PopCommand::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
1
<?php
2
3
namespace Psonic\Commands\Ingest;
4
5
use Psonic\Commands\Command;
6
7
final class PopCommand extends Command
8
{
9
    private $command    = 'POP';
10
    private $parameters = [];
11
12
    /**
13
     * pops a text from a given object
14
     * PopCommand constructor.
15
     * @param string $collection
16
     * @param string $bucket
17
     * @param string $object
18
     * @param string $text
19
     */
20
    public function __construct(string $collection, string $bucket, string $object, string $text)
21
    {
22
        $this->parameters = [
23
            'collection' => $collection,
24
            'bucket'     => $bucket,
25
            'object'     => $object,
26
            'text'       => self::wrapInQuotes($text),
0 ignored issues
show
Bug Best Practice introduced by
The method Psonic\Commands\Command::wrapInQuotes() is not static, but was called statically. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
            'text'       => self::/** @scrutinizer ignore-call */ wrapInQuotes($text),
Loading history...
27
        ];
28
29
        parent::__construct($this->command, $this->parameters);
30
    }
31
}