Skip to content

Commit 433a10b

Browse files
committed
Fixing method calls
1 parent e2c6207 commit 433a10b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

example/example.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
require_once('./SomeClass.php');
2222
sleep(1);
2323
Benchmark::stop('mary');
24-
2524
Output::output(Benchmark::get())->render();
2625

2726
Benchmark::reset();

src/Dependency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static function symfonyTable()
2222
*/
2323
public static function symfonyConsoleOutput()
2424
{
25-
$output = new ConsoleOutput(1);
25+
$output = new ConsoleOutput();
2626
$output->setFormatter(self::symfonyOutputFormatter());
2727
return $output;
2828
}

src/Output.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ class Output
5050
public function __construct() {}
5151

5252
/**
53-
* @param Benchmark $benchmark
54-
* @param bool|HTMLOutputInterface $interface
53+
* @param Benchmark $benchmark
54+
* @param null|string $interface
5555
* @throws \Exception
5656
* @return string
5757
*/
58-
public static function output(Benchmark $benchmark, $interface = false)
58+
public static function output(Benchmark $benchmark, $interface = null)
5959
{
6060
if (! $class = self::outputClass($interface ?: php_sapi_name())) {
6161
throw new \Exception('Interface ['. $interface . '] is unknown.');

src/Output/AbstractOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct($output)
5454

5555
public function render()
5656
{
57-
return $this->output->render();
57+
$this->output->render();
5858
}
5959

6060
/**

src/Output/Console.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Console extends AbstractOutput implements HTMLOutputInterface
2020
*/
2121
public function render()
2222
{
23-
$this->output->render();
23+
parent::render();
2424
}
2525

2626
/**
@@ -36,6 +36,7 @@ public static function output(Benchmark $benchmark, Table $table = null, TableSe
3636
$table->setHeaders(self::$headers);
3737
self::loopRows($table, $tableSeparator, $benchmark->getMarkers());
3838
return new static($table);
39+
3940
}
4041

4142
/**

0 commit comments

Comments
 (0)