Skip to content

Commit

Permalink
Merge pull request #32 from Mikopet/master
Browse files Browse the repository at this point in the history
composer update for symfony 3.0+ packages
  • Loading branch information
mickaelandrieu authored Feb 5, 2017
2 parents 06fcd5a + 7fc6574 commit 91b102e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Command/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Certificationy\Certification\Set;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -159,13 +160,13 @@ protected function displayResults(Set $set, OutputInterface $output)
}

if ($results) {
$tableHelper = $this->getHelper('table');
$tableHelper = new Table($output);
$tableHelper
->setHeaders(array('Question', 'Correct answer', 'Result', 'Help'))
->setRows($results)
;

$tableHelper->render($output);
$tableHelper->render();

$output->writeln(
sprintf('<comment>Results</comment>: <error>errors: %s</error> - <info>correct: %s</info>', $set->getErrorsNumber(), $set->getValidNumber())
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"certificationy/symfony-pack": "dev-master",
"certificationy/php-pack": "dev-master",

"herrera-io/phar-update": "~1.0",
"herrera-io/phar-update": "~2.0",
"kherge/amend": "~3.0"
},
"require-dev": {
Expand Down

0 comments on commit 91b102e

Please sign in to comment.