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.
Failed Conditions
Push — master ( 2273d9...7f55dd )
by Jonathan
02:36
created

Event/CircuitBreakerEvent.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php declare(strict_types = 1);
2
3
namespace CircuitBreakerBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class CircuitBreakerEvent extends Event
8
{
9
    /**
10
     * @var string
11
     */
12
    private $key;
13
14
    /**
15
     * @var bool
16
     */
17
    private $status;
18
19
    /**
20
     * @param string $key
21
     * @param bool $status
22
     */
23
    public function __construct(string $key, bool $status)
24
    {
25
        $this->key = $key;
0 ignored issues
show
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
26
        $this->status = $status;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getKey(): string
33
    {
34
        return $this->key;
35
    }
36
37
    /**
38
     * @return bool
39
     */
40
    public function getStatus(): bool
41
    {
42
        return $this->status;
43
    }
44
}
45