| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | protected function createTableIfNotExists(): void |
||
| 23 | { |
||
| 24 | $this->connection->prepare( |
||
| 25 | "CREATE TABLE IF NOT EXISTS `{$this->credentials['table']}` ( |
||
| 26 | `time` float DEFAULT NULL, |
||
| 27 | `name` varchar(255) NOT NULL, |
||
| 28 | `method` varchar(255) DEFAULT NULL, |
||
| 29 | `class` varchar(255) DEFAULT NULL, |
||
| 30 | PRIMARY KEY (`name`) |
||
| 31 | );" |
||
| 32 | )->execute(); |
||
| 33 | } |
||
| 34 | |||
| 53 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.