1 | <?php |
||
14 | class TwilioChannel extends Component implements ChannelInterface |
||
15 | { |
||
16 | public $baseUrl = 'https://api.twilio.com/2010-04-01'; |
||
17 | |||
18 | public $accountSid; |
||
19 | |||
20 | public $authToken; |
||
21 | |||
22 | public $from; |
||
23 | |||
24 | /** |
||
25 | * @var Client |
||
26 | */ |
||
27 | public $httpClient; |
||
28 | |||
29 | public function init() |
||
34 | |||
35 | public function getUri() |
||
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | */ |
||
43 | public function send(NotifiableInterface $recipient, NotificationInterface $notification) |
||
63 | |||
64 | } |
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.