Skip to content

Commit

Permalink
[6.x] Fix a comment in Pipeline (#31585)
Browse files Browse the repository at this point in the history
* fix comment

* Fixed comment alignment

Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
  • Loading branch information
nguyenyou and GrahamCampbell authored Feb 25, 2020
1 parent 6ad1b81 commit 87ab221
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Pipeline/Pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ protected function carry()
return function ($passable) use ($stack, $pipe) {
try {
if (is_callable($pipe)) {
// If the pipe is an instance of a Closure, we will just call it directly but
// otherwise we'll resolve the pipes out of the container and call it with
// If the pipe is a callable, then we will call it directly, but otherwise we
// will resolve the pipes out of the dependency container and call it with
// the appropriate method and arguments, returning the results back out.
return $pipe($passable, $stack);
} elseif (! is_object($pipe)) {
Expand Down Expand Up @@ -225,7 +225,7 @@ protected function getContainer()
}

/**
* Handles the value returned from each pipe before passing it to the next.
* Handle the value returned from each pipe before passing it to the next.
*
* @param mixed $carry
* @return mixed
Expand Down

0 comments on commit 87ab221

Please sign in to comment.