Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
51 | View Code Duplication | public function __construct() |
|
52 | { |
||
53 | $this->connect = new mysqli( |
||
54 | getenv('DB_HOST'), |
||
55 | getenv('DB_USER'), |
||
56 | getenv('DB_PASSWORD'), |
||
57 | getenv('DB_NAME') |
||
58 | ); |
||
59 | } |
||
60 | |||
85 |
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.