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 ( d13c9c...463153 )
by Charlotte
03:30
created

StatementCloseCommand::resetSequence()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Plasma Driver MySQL component
4
 * Copyright 2018 PlasmaPHP, All Rights Reserved
5
 *
6
 * Website: https://github.com/PlasmaPHP
7
 * License: https://github.com/PlasmaPHP/driver-mysql/blob/master/LICENSE
8
*/
9
10
namespace Plasma\Drivers\MySQL\Commands;
11
12
/**
13
 * Statement Close command.
14
 * @internal
15
 */
16
class StatementCloseCommand extends PromiseCommand {
17
    /**
18
     * The identifier for this command.
19
     * @var int
20
     * @source
21
     */
22
    const COMMAND_ID = 0x19;
23
    
24
    /**
25
     * @var \Plasma\DriverInterface
26
     */
27
    protected $driver;
28
    
29
    /**
30
     * @var mixed
31
     */
32
    protected $id;
33
    
34
    /**
35
     * Constructor.
36
     * @param \Plasma\DriverInterface  $driver
37
     * @param mixed                    $id
38
     */
39
    function __construct(\Plasma\DriverInterface $driver, $id) {
40
        parent::__construct();
41
        
42
        $this->driver = $driver;
43
        $this->id = $id;
44
    }
45
    
46
    /**
47
     * Get the encoded message for writing to the database connection.
48
     * @return string
49
     */
50
    function getEncodedMessage(): string {
51
        $this->finished = true;
52
        return \chr(static::COMMAND_ID).$this->id;
53
    }
54
    
55
    /**
56
     * Sends the next received value into the command.
57
     * @param mixed  $value
58
     * @return void
59
     */
60
    function onNext($value): void {
61
        // Nothing to do
62
    }
63
    
64
    /**
65
     * Whether the sequence ID should be resetted.
66
     * @return bool
67
     */
68
    function resetSequence(): bool {
69
        return false;
70
    }
71
}
72