Skip to content

Commit cec0896

Browse files
committed
Hooks Pipeline minor
1 parent f5fe2e6 commit cec0896

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HooksPipeline.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ protected function carry()
6060
return function ($passable) use ($stack, $pipe) {
6161
try {
6262
if (is_callable($pipe)) {
63-
// If the pipe is an instance of a Closure, we will just call it directly but
64-
// otherwise we'll resolve the pipes out of the container and call it with
63+
// If the pipe is a callable, then we will call it directly, but otherwise we
64+
// will resolve the pipes out of the dependency container and call it with
6565
// the appropriate method and arguments, returning the results back out.
6666
return $pipe($passable, $stack);
6767
} elseif (! is_object($pipe)) {
@@ -85,8 +85,8 @@ protected function carry()
8585
}
8686

8787
$carry = method_exists($pipe, $this->method)
88-
? $pipe->{$this->method}(...$parameters)
89-
: $pipe(...$parameters);
88+
? $pipe->{$this->method}(...$parameters)
89+
: $pipe(...$parameters);
9090

9191
return $this->handleCarry($carry);
9292
} catch (Exception $e) {

0 commit comments

Comments
 (0)