/** * @param SwaggerDocument $document */ public function fix(SwaggerDocument $document) { $this->process($document); if ($this->next) { $this->next->fix($document); } }
/** * @SuppressWarnings(PHPMD.UnusedFormalParameter) * * @param InputInterface $input * @param OutputInterface $output * * @return void */ protected function execute(InputInterface $input, OutputInterface $output) { $document = $this->documentRepository->get($input->getArgument('file')); $this->fixer->fix($document); $document->write($input->getOption('out')); }