Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 22, 2009
1 parent 7c15ea1 commit 11ddcc3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions PHPLOC/TextUI/ResultPrinter.php
Expand Up @@ -55,15 +55,19 @@ class PHPLOC_TextUI_ResultPrinter
{
public function printResult(array $count)
{
$args = array(
$count['directories'],
$count['files'],
$count['loc']
);
$args = array();
$format = '';

$format = "Directories: %10d\n" .
"Files: %10d\n" .
"Lines of Code (LOC): %10d\n";
if ($count['directories'] > 0) {
$args[] = $count['directories'];
$args[] = $count['files'];

$format .= "Directories: %10d\n" .
"Files: %10d\n";
}

$args[] = $count['loc'];
$format .= "Lines of Code (LOC): %10d\n";

if (isset($count['eloc'])) {
$args[] = $count['eloc'];
Expand Down

0 comments on commit 11ddcc3

Please sign in to comment.