| Conditions | 2 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected function waitForMySQLDatabaseByName($database_name) |
||
| 20 | { |
||
| 21 | return $this->retry(50, function () use ($database_name) { |
||
| 22 | $this->databases = $this->fetchMySQLDatabases(); |
||
|
|
|||
| 23 | $database = $this->getMysqlDatabaseByName($this->databases, $database_name); |
||
| 24 | return $database['status'] == 'installed' ? $database : null; |
||
| 25 | }); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: