Skip to content

Commit

Permalink
Remove unnecessary docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Nov 14, 2018
1 parent a2a0300 commit d8e30e3
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ final class Client implements HttpClient, HttpAsyncClient
*/
private $client;

/**
* @param ClientInterface|null $client
*/
public function __construct(ClientInterface $client = null)
{
if (!$client) {
Expand All @@ -37,10 +34,6 @@ public function __construct(ClientInterface $client = null)

/**
* Factory method to create the Guzzle 6 adapter with custom Guzzle configuration.
*
* @param array $config Configuration to create guzzle with.
*
* @return Client
*/
public static function createWithConfig(array $config): Client
{
Expand Down Expand Up @@ -68,13 +61,9 @@ public function sendAsyncRequest(RequestInterface $request)
}

/**
* Build the guzzle client instance.
*
* @param array $config Additional configuration
*
* @return GuzzleClient
* Build the Guzzle client instance.
*/
private static function buildClient(array $config = [])
private static function buildClient(array $config = []): GuzzleClient
{
$handlerStack = new HandlerStack(\GuzzleHttp\choose_handler());
$handlerStack->push(Middleware::prepareBody(), 'prepare_body');
Expand Down

0 comments on commit d8e30e3

Please sign in to comment.