| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | protected function loadConfig() |
||
| 34 | { |
||
| 35 | $gitConfig = []; |
||
| 36 | |||
| 37 | $output = $this->runCommand('config --list'); |
||
| 38 | $output = explode("\n", str_replace(["\r\n", "\r"], "\n", $output)); |
||
| 39 | |||
| 40 | foreach ($output as $config) { |
||
| 41 | $parts = array_map('trim', explode('=', $config, 2)) + ['', '']; |
||
| 42 | |||
| 43 | $gitConfig[$parts[0]] = $parts[1]; |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->gitConfig = $gitConfig; |
||
| 47 | } |
||
| 63 |