@@ -31,6 +31,10 @@ |
||
31 | 31 | return ''; |
32 | 32 | } |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $before |
|
36 | + * @param string $after |
|
37 | + */ |
|
34 | 38 | public function surroundWith($before, $after) { |
35 | 39 | $oldRunner = $this->runner; |
36 | 40 | $this->runner = function (DelayedOutput $output) use ($oldRunner, $before, $after) { |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function __construct(callable $runner) { |
15 | 15 | $this->runner = $runner; |
16 | - $this->printer = function ($string) { |
|
16 | + $this->printer = function($string) { |
|
17 | 17 | echo $string; |
18 | 18 | }; |
19 | 19 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function surroundWith($before, $after) { |
35 | 35 | $oldRunner = $this->runner; |
36 | - $this->runner = function (DelayedOutput $output) use ($oldRunner, $before, $after) { |
|
36 | + $this->runner = function(DelayedOutput $output) use ($oldRunner, $before, $after) { |
|
37 | 37 | $this->write($before); |
38 | 38 | call_user_func($oldRunner, $output); |
39 | 39 | $this->write($after); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | ob_end_flush(); |
25 | 25 | |
26 | 26 | $value->surroundWith("<pre>", "</pre>"); |
27 | - $value->setPrinter(function ($string) { |
|
27 | + $value->setPrinter(function($string) { |
|
28 | 28 | echo $string; |
29 | 29 | flush(); |
30 | 30 | ob_flush(); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | public function error($message) { |
22 | 22 | $stderr = fopen('php://stderr', 'w'); |
23 | - fwrite($stderr,$message); |
|
23 | + fwrite($stderr, $message); |
|
24 | 24 | fclose($stderr); |
25 | 25 | } |
26 | 26 |