1 | <?php declare(strict_types = 1); |
||
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) |
||
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | public function getKey(): string |
||
36 | |||
37 | /** |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function getStatus(): bool |
||
44 | } |
||
45 |
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
will produce issues in the first and second line, while this second example
will produce no issues.