Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
27 | 1 | public function __construct(array $attributes = []) |
|
28 | { |
||
29 | 1 | if (! isset($this->connection)) { |
|
30 | $this->setConnection(config('webpush.database_connection')); |
||
31 | } |
||
32 | |||
33 | if (! isset($this->table)) { |
||
34 | $this->setTable(config('webpush.table_name')); |
||
35 | } |
||
36 | |||
37 | parent::__construct($attributes); |
||
38 | 9 | } |
|
39 | |||
61 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.