@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function createCallable(array $pipes, callable $outlet = null) |
| 18 | 18 | { |
| 19 | 19 | if ($outlet !== null) { |
| 20 | - $pipes[] = $outlet; |
|
| 20 | + $pipes[ ] = $outlet; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | return function($payload) use($pipes) { |
@@ -45,13 +45,13 @@ |
||
| 45 | 45 | if ($outlet !== null) { |
| 46 | 46 | $callable = $outlet; |
| 47 | 47 | } else { |
| 48 | - $callable = function ($payload) { |
|
| 48 | + $callable = function($payload) { |
|
| 49 | 49 | return $payload; |
| 50 | 50 | }; |
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | while ($pipe = array_pop($pipes)) { |
| 54 | - $callable = function (...$payload) use ($pipe, $callable) { |
|
| 54 | + $callable = function(...$payload) use ($pipe, $callable) { |
|
| 55 | 55 | return $pipe($callable, ...$payload); |
| 56 | 56 | }; |
| 57 | 57 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @var callable[] |
| 25 | 25 | */ |
| 26 | - private $pipes = []; |
|
| 26 | + private $pipes = [ ]; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * The destination of the last pipe |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public function pipe($last) |
| 90 | 90 | { |
| 91 | 91 | $this->clear(); |
| 92 | - $this->pipes[] = $last; |
|
| 92 | + $this->pipes[ ] = $last; |
|
| 93 | 93 | |
| 94 | 94 | return $this; |
| 95 | 95 | } |