| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ReserveCallConsole extends Console |
||
| 20 | { |
||
| 21 | public const COMMAND_NAME = 'crefo-pay-api:reserve'; |
||
| 22 | public const COMMAND_DESCRIPTION = 'Perform Reserve API call to CrefoPay'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | protected function configure() |
||
| 28 | { |
||
| 29 | parent::configure(); |
||
| 30 | $this |
||
| 31 | ->setName(static::COMMAND_NAME) |
||
| 32 | ->setDescription(static::COMMAND_DESCRIPTION) |
||
| 33 | ->setHelp('<info>' . static::COMMAND_NAME . ' -h</info>'); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
| 38 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
| 39 | * |
||
| 40 | * @return void |
||
| 41 | */ |
||
| 42 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 43 | { |
||
| 44 | $response = $this->getFacade()->performReserveApiCall($this->createRequestTransfer()); |
||
| 45 | echo json_encode($response->toArray(true, true), JSON_PRETTY_PRINT); |
||
| 46 | } |
||
| 47 | |||
| 48 | protected function createRequestTransfer(): CrefoPayApiRequestTransfer |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths