| 1 | <?php |
||
| 15 | class Obyx |
||
| 16 | { |
||
| 17 | use InteractsWithSockets, SerializesModels; |
||
| 18 | |||
| 19 | public $reason; |
||
| 20 | public $user_id; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create a new event instance. |
||
| 24 | */ |
||
| 25 | public function __construct($reason, $user_id) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get the channels the event should broadcast on. |
||
| 33 | * |
||
| 34 | * @return Channel|array |
||
| 35 | */ |
||
| 36 | public function broadcastOn() |
||
| 40 | } |
||
| 41 |
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.