Skip to content

Commit

Permalink
minor #38 Tweaked the ouput of projects command (lyrixx)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.1.x-dev branch.

Discussion
----------

Tweaked the ouput of projects command

fix #21

Commits
-------

1201a40 Tweaked the ouput of projects command
  • Loading branch information
lyrixx committed Nov 17, 2014
2 parents 8a9572f + 1201a40 commit 80f502d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cli/Command/ProjectsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ protected function execute(InputInterface $input, OutputInterface $output)
$rows = array();
foreach ($projects as $project) {
if ($project->getLastAnalysis()) {
$lastAnalysis = $project->getLastAnalysis()->getGrade();
$grade = $project->getLastAnalysis()->getGrade();
} else {
$lastAnalysis = 'This project has no analyses';
$grade = 'This project has no analyses';
}
$rows[] = array($project->getName(), $project->getUuid(), $lastAnalysis);
$rows[] = array($project->getName(), $project->getUuid(), $grade);
}

$this
->getHelperSet()->get('table')
->setHeaders(array('name', 'uuid', 'grade of last analysis'))
->setHeaders(array('name', 'uuid', 'grade'))
->setRows($rows)
->render($output)
;
Expand Down

0 comments on commit 80f502d

Please sign in to comment.