Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | 1 | public function execute(InputInterface $input, OutputInterface $output): int |
|
47 | { |
||
48 | 1 | parent::execute($input, $output); |
|
49 | |||
50 | // Parse existing CHANGELOG |
||
51 | 1 | $logs = $this->changeLog->parse(); |
|
52 | |||
53 | 1 | $files = $input->getArgument('files'); |
|
54 | 1 | foreach ($files as $f) { |
|
55 | // Merge each file |
||
56 | 1 | $this->changeLog->setInput(new File(['file' => $f])); |
|
57 | 1 | $logs->mergeLog($this->changeLog->parse()); |
|
58 | } |
||
59 | |||
60 | // Write updated CHANGELOG |
||
61 | 1 | $this->changeLog->write($logs); |
|
62 | |||
63 | 1 | return Command::SUCCESS; |
|
64 | } |
||
66 |