| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 46 | public function substitute(Process $envSubstProcess) |
||
| 47 | { |
||
| 48 | /** @var SplFileInfo $file */ |
||
| 49 | foreach ($this->finder->files() as $file) { |
||
| 50 | $this->style->verbose('In-place substitution of environment in '.$file->getRealPath()); |
||
| 51 | |||
| 52 | $envSubstProcess->setInput($file->getContents()); |
||
| 53 | $this->processRunner->mustRun($envSubstProcess); |
||
| 54 | |||
| 55 | $this->filesystem->dumpFile($file->getRealPath(), $envSubstProcess->getOutput()); |
||
| 56 | } |
||
| 58 | } |