| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function resolveAlias($alias) |
||
| 20 | { |
||
| 21 | while (is_string($alias) && isset($this->config['aliases'][$alias])) { |
||
|
1 ignored issue
–
show
|
|||
| 22 | //Resolving database alias |
||
| 23 | $alias = $this->config['aliases'][$alias]; |
||
| 24 | } |
||
| 25 | |||
| 26 | return $alias; |
||
| 27 | |||
| 28 | } |
||
| 29 | } |
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: