1 | <?php |
||
11 | class InterfacePrinter |
||
12 | { |
||
13 | /** |
||
14 | * @var Dispatcher |
||
15 | */ |
||
16 | private $dispatcher = null; |
||
17 | /** |
||
18 | * @var Logger |
||
19 | */ |
||
20 | private $logger = null; |
||
21 | /** |
||
22 | * @var ClassManipulator |
||
23 | */ |
||
24 | private $classManipulator = null; |
||
25 | /** |
||
26 | * @var ReservedWordReplacer |
||
27 | */ |
||
28 | private $reservedWordReplacer = null; |
||
29 | |||
30 | /** |
||
31 | * @param Dispatcher $dispatcher |
||
32 | * @param Logger $logger |
||
33 | * @param ClassManipulator $classManipulator |
||
34 | * @param ReservedWordReplacer $reservedWordReplacer |
||
35 | */ |
||
36 | 1 | public function __construct( |
|
47 | |||
48 | 1 | public static function getType() |
|
52 | |||
53 | 4 | public function convert(Stmt\Interface_ $node) |
|
73 | } |
||
74 |
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.