From f290babe836a4bb61f1a3d415ad27f5dd69a351a Mon Sep 17 00:00:00 2001 From: nguyenyou Date: Tue, 25 Feb 2020 11:10:11 +0700 Subject: [PATCH 1/2] fix comment --- src/Illuminate/Pipeline/Pipeline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Pipeline/Pipeline.php b/src/Illuminate/Pipeline/Pipeline.php index 38dadf1c0c63..3251b32c597e 100644 --- a/src/Illuminate/Pipeline/Pipeline.php +++ b/src/Illuminate/Pipeline/Pipeline.php @@ -147,7 +147,7 @@ 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 + // If the pipe is callable, we will just call it directly but // otherwise we'll resolve the pipes out of the container and call it with // the appropriate method and arguments, returning the results back out. return $pipe($passable, $stack); @@ -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 From 20bde392ecb8cccedf6b1f022868da695c625843 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 25 Feb 2020 07:46:39 +0000 Subject: [PATCH 2/2] Fixed comment alignment --- src/Illuminate/Pipeline/Pipeline.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Pipeline/Pipeline.php b/src/Illuminate/Pipeline/Pipeline.php index 3251b32c597e..32b80e2a0fa5 100644 --- a/src/Illuminate/Pipeline/Pipeline.php +++ b/src/Illuminate/Pipeline/Pipeline.php @@ -147,8 +147,8 @@ protected function carry() return function ($passable) use ($stack, $pipe) { try { if (is_callable($pipe)) { - // If the pipe is callable, 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)) {