| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0987 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
| 40 | { |
||
| 41 | |||
| 42 | 1 | $from = $input->getArgument("from"); |
|
| 43 | 1 | if ($from != null) { |
|
| 44 | $this->from = \DateTime::createFromFormat("Y-m-d H:i:s", $from . "00:00:00"); |
||
| 45 | } |
||
| 46 | 1 | $this->commentsApi->baseline($this); |
|
| 47 | 1 | if ($from != null) { |
|
| 48 | $output->writeln(sprintf("Successfully base-lined Comments from %s", $from)); |
||
| 49 | } else { |
||
| 50 | 1 | $output->writeln(sprintf("Successfully base-lined all Comments")); |
|
| 51 | } |
||
| 52 | |||
| 53 | 1 | return Command::SUCCESS; |
|
| 54 | |||
| 68 | } |