@@ -37,12 +37,12 @@ |
||
| 37 | 37 | protected function configure() |
| 38 | 38 | { |
| 39 | 39 | $this->setName('diff') |
| 40 | - ->setDescription('Shows a diff between two JUnit log files') |
|
| 41 | - ->setDefinition(array( |
|
| 42 | - new InputOption('input1', '1', InputOption::VALUE_REQUIRED, 'First input file'), |
|
| 43 | - new InputOption('input2', '2', InputOption::VALUE_REQUIRED, 'Second input file') |
|
| 44 | - )) |
|
| 45 | - ->setHelp(''); |
|
| 40 | + ->setDescription('Shows a diff between two JUnit log files') |
|
| 41 | + ->setDefinition(array( |
|
| 42 | + new InputOption('input1', '1', InputOption::VALUE_REQUIRED, 'First input file'), |
|
| 43 | + new InputOption('input2', '2', InputOption::VALUE_REQUIRED, 'Second input file') |
|
| 44 | + )) |
|
| 45 | + ->setHelp(''); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | |
@@ -47,12 +47,12 @@ |
||
| 47 | 47 | protected function configure() |
| 48 | 48 | { |
| 49 | 49 | $this->setName('compare') |
| 50 | - ->setDescription('Compares two JUnit log files') |
|
| 51 | - ->setDefinition(array( |
|
| 52 | - new InputArgument('base', InputArgument::REQUIRED, 'Base file for the comparison'), |
|
| 53 | - new InputArgument('current', InputArgument::REQUIRED, 'Current file to compare against the base file') |
|
| 54 | - )) |
|
| 55 | - ->setHelp(''); |
|
| 50 | + ->setDescription('Compares two JUnit log files') |
|
| 51 | + ->setDefinition(array( |
|
| 52 | + new InputArgument('base', InputArgument::REQUIRED, 'Base file for the comparison'), |
|
| 53 | + new InputArgument('current', InputArgument::REQUIRED, 'Current file to compare against the base file') |
|
| 54 | + )) |
|
| 55 | + ->setHelp(''); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | |
@@ -41,6 +41,10 @@ |
||
| 41 | 41 | |
| 42 | 42 | protected $file2; |
| 43 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $file1 |
|
| 46 | + * @param string $file2 |
|
| 47 | + */ |
|
| 44 | 48 | public function __construct(StyleInterface $style, $file1, $file2) |
| 45 | 49 | { |
| 46 | 50 | $this->style = $style; |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | |
| 41 | 41 | private $verbosity; |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param integer $verbosity |
|
| 45 | + */ |
|
| 43 | 46 | public function __construct(StyleInterface $style, $verbosity = Output::VERBOSITY_NORMAL) |
| 44 | 47 | { |
| 45 | 48 | $this->style = $style; |