| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public static function getProperties(string $propertiesFile) |
||
| 13 | { |
||
| 14 | $fd = fopen($propertiesFile, 'r'); |
||
| 15 | $properies = []; |
||
| 16 | while (($line = fgets($fd)) !== false) { |
||
| 17 | $pair = explode('=', $line); |
||
| 18 | $properies[$pair[0]] = trim($pair[1]); |
||
| 19 | } |
||
| 20 | fclose($fd); |
||
| 21 | return $properies; |
||
| 22 | } |
||
| 24 |