Permalink
Browse files

Correcting indentation level in profiler console output.

  • Loading branch information...
1 parent 49b2ef1 commit e712701dd2615ca17852073ce99cb3d198958ae1 @davidpersson davidpersson committed May 17, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 test/templates/console/profiler.txt.php
@@ -1,9 +1,11 @@
{:heading}Benchmarks{:end}
<?php
- $width = array_reduce(array_keys($data['totals']), function($v, $w) {
- return $v = (($l = strlen($w)) > $v) ? $l : $v;
- });
- foreach ($data['totals'] as $title => $result) {
- printf("%-{$width}s %s\n", $title, $result['formatter']($result['value']));
- }
+
+$width = array_reduce(array_keys($data['totals']), function($v, $w) {
+ return $v = (($l = strlen($w)) > $v) ? $l : $v;
+});
+foreach ($data['totals'] as $title => $result) {
+ printf("%-{$width}s %s\n", $title, $result['formatter']($result['value']));
+}
+
?>

0 comments on commit e712701

Please sign in to comment.