| 1 | <?php |
||
| 7 | class JobsReceivedEvent extends Event |
||
| 8 | { |
||
| 9 | const ID = 'job.getjob'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var Job[] |
||
| 13 | */ |
||
| 14 | private $jobs; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string[] |
||
| 18 | */ |
||
| 19 | private $queues; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string[] $queues |
||
| 24 | * @param Job[] $jobs |
||
| 25 | */ |
||
| 26 | public function __construct(array $queues, array $jobs) |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * @return Job[] |
||
| 35 | */ |
||
| 36 | public function getJobs() |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string[] |
||
| 44 | */ |
||
| 45 | public function getQueues() |
||
| 49 | |||
| 50 | } |
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.