| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 33 | { |
||
| 34 | $this->assureInputFileReadable($input); |
||
| 35 | $validLines = new \RegexIterator(new \SplFileObject($input->getArgument('input')), $input->getArgument('expression')); |
||
| 36 | |||
| 37 | $target = new \SplFileObject($input->getArgument('output'), 'w'); |
||
| 38 | foreach ($validLines as $line) { |
||
| 39 | $target->fwrite($line); |
||
| 40 | } |
||
| 41 | |||
| 42 | return 0; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |