Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class ActiveRecordChannel extends Component implements ChannelInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var ActiveRecordInterface|string |
||
20 | */ |
||
21 | public $model = 'tuyakhov\notifications\models\DatabaseNotification'; |
||
22 | |||
23 | /** |
||
24 | * @throws \yii\base\InvalidConfigException |
||
25 | */ |
||
26 | public function init() |
||
30 | } |
||
31 | |||
32 | public function send(NotifiableInterface $recipient, NotificationInterface $notification) |
||
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.