Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function __construct($text, $extraTexts = null) |
||
16 | { |
||
17 | $extra = []; |
||
18 | if (!is_null($extraTexts)) { |
||
19 | $args = func_get_args(); |
||
20 | $extra = array_slice($args, 1); |
||
21 | } |
||
22 | |||
23 | if (count($extra) >= 4) { |
||
24 | throw CouldNotSendNotification::exceededOfMessages(count($extra) + 1); |
||
25 | } |
||
26 | |||
27 | $this->texts = array_merge([$text], $extra); |
||
28 | |||
29 | $this->contents = $contents; |
||
30 | } |
||
31 | } |
||
32 |
This check marks private properties in classes that are never used. Those properties can be removed.