| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | private function stripFileName(string $messages): string |
||
| 49 | { |
||
| 50 | $config = $this->config; |
||
| 51 | $dirs = array( |
||
| 52 | $config->get('dotfiles.home_dir') => '$home_dir', |
||
| 53 | $config->get('dotfiles.temp_dir') => '$temp_dir', |
||
| 54 | $config->get('dotfiles.bin_dir') => '$dotfiles_dir/bin', |
||
| 55 | ); |
||
| 56 | if (getcwd() !== ($dir = $config->get('dotfiles.repo_dir'))) { |
||
| 57 | $dirs[$dir] = '$repo_dir'; |
||
| 58 | } |
||
| 59 | |||
| 60 | $messages = strtr($messages, $dirs); |
||
| 61 | |||
| 62 | return $messages; |
||
| 63 | } |
||
| 65 |