Skip to content

Commit dd3848a

Browse files
committed
formatting
1 parent b070f03 commit dd3848a

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,17 @@ public function createClient($handlerStack)
808808
}
809809

810810
/**
811-
* add handlers to the handler stack.
811+
* Build the Guzzle client handler stack.
812+
*
813+
* @return \GuzzleHttp\HandlerStack
814+
*/
815+
public function buildHandlerStack()
816+
{
817+
return $this->pushHandlers(HandlerStack::create());
818+
}
819+
820+
/**
821+
* Add the necessary handlers to the given handler stack.
812822
*
813823
* @param \GuzzleHttp\HandlerStack $handlerStack
814824
* @return \GuzzleHttp\HandlerStack
@@ -826,16 +836,6 @@ public function pushHandlers($handlerStack)
826836
});
827837
}
828838

829-
/**
830-
* Build the before sending handler stack.
831-
*
832-
* @return \GuzzleHttp\HandlerStack
833-
*/
834-
public function buildHandlerStack()
835-
{
836-
return $this->pushHandlers(HandlerStack::create());
837-
}
838-
839839
/**
840840
* Build the before sending handler.
841841
*
@@ -1046,14 +1046,16 @@ public function setClient(Client $client)
10461046
}
10471047

10481048
/**
1049-
* set the handler function.
1049+
* Create a new client instance using the given handler.
10501050
*
10511051
* @param callable $handler
10521052
* @return $this
10531053
*/
10541054
public function setHandler($handler)
10551055
{
1056-
$this->client = $this->createClient($this->pushHandlers(HandlerStack::create($handler)));
1056+
$this->client = $this->createClient(
1057+
$this->pushHandlers(HandlerStack::create($handler))
1058+
);
10571059

10581060
return $this;
10591061
}

src/Illuminate/Http/Client/Pool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Pool
1717
protected $factory;
1818

1919
/**
20-
* The handler function for Guzzle client.
20+
* The handler function for the Guzzle client.
2121
*
2222
* @var callable
2323
*/

0 commit comments

Comments
 (0)