Skip to content

Commit 44fa866

Browse files
committed
TestCommand.php: clean-up
1 parent 62ff107 commit 44fa866

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

tools/raml2html/src/Command/TestCommand.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use EzSystems\Raml2Html\Test\ReferenceTester;
88
use Symfony\Component\Console\Command\Command;
9-
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
109
use Symfony\Component\Console\Input\InputInterface;
1110
use Symfony\Component\Console\Input\InputArgument;
1211
use Symfony\Component\Console\Input\InputOption;
@@ -68,25 +67,4 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6867

6968
return 0;
7069
}
71-
72-
private function createParserConfigurationFromInput(InputInterface $input): ParserConfiguration
73-
{
74-
$configuration = new ParserConfiguration();
75-
76-
$nonStandardHTTPMethods = $input->getOption(self::OPTION_NON_STANDARD_HTTP_METHODS);
77-
if ($nonStandardHTTPMethods !== null) {
78-
$configuration->setNonStandardHttpMethods(explode(',', $nonStandardHTTPMethods));
79-
}
80-
81-
return $configuration;
82-
}
83-
84-
private function createGeneratorOptionsFromInput(InputInterface $input): GeneratorOptions
85-
{
86-
$generatorOptions = new GeneratorOptions();
87-
$generatorOptions->setOutputDir($input->getOption(self::OPTION_OUTPUT_DIR));
88-
$generatorOptions->setTheme($input->getOption(self::OPTION_THEME));
89-
90-
return $generatorOptions;
91-
}
9270
}

tools/raml2html/src/Test/ReferenceTester.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace EzSystems\Raml2Html\Test;
44

5-
use Symfony\Component\Console\Output\Output;
5+
use Symfony\Component\Console\Output\OutputInterface;
66

77
class ReferenceTester
88
{
@@ -47,10 +47,10 @@ class ReferenceTester
4747
private $refRoutes;
4848
private $confRoutes;
4949

50-
/** @var Output */
50+
/** @var OutputInterface */
5151
private $output;
5252

53-
public function __construct($restApiReference, $dxpRoot, $consolePath = 'bin/console', $routingFiles = null, Output $output = null)
53+
public function __construct($restApiReference, $dxpRoot, $consolePath = 'bin/console', $routingFiles = null, OutputInterface $output = null)
5454
{
5555
if (!is_file($restApiReference)) {
5656
user_error("$restApiReference doesn't exist or is not a file", E_USER_ERROR);

0 commit comments

Comments
 (0)