| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | protected function loadConfig() |
||
| 43 | { |
||
| 44 | $gitConfig = []; |
||
| 45 | |||
| 46 | $output = $this->runCommand('config --list'); |
||
| 47 | $output = explode("\n", str_replace(["\r\n", "\r"], "\n", $output)); |
||
| 48 | |||
| 49 | foreach ($output as $config) { |
||
| 50 | $parts = array_map('trim', explode('=', $config, 2)) + ['', '']; |
||
| 51 | |||
| 52 | $gitConfig[$parts[0]] = $parts[1]; |
||
| 53 | } |
||
| 54 | |||
| 55 | $this->gitConfig = $gitConfig; |
||
| 56 | } |
||
| 72 |