ReviewOS

also looking at this

ci-on/laravel-cloudflare

Apply fixes from StyleCI

#2
Merged glennmichael123 wants to merge analysis-5443oY into master
6 files +31 -33
src/Client.phpmodified+11-11
Changes to src/Client.php
@@ -2,13 +2,13 @@
22
33namespace Cion\LaravelCloudflare;
44
5use GuzzleHttp\Promise;
6use Psr\Log\LoggerInterface;
7use Illuminate\Support\Collection;
85use GuzzleHttp\Client as GuzzleClient;
9use Psr\Http\Message\ResponseInterface;
106use GuzzleHttp\Exception\ClientException;
117use GuzzleHttp\Exception\RequestException;
8use GuzzleHttp\Promise;
9use Illuminate\Support\Collection;
10use Psr\Http\Message\ResponseInterface;
11use Psr\Log\LoggerInterface;
1212
1313class Client
1414{
formatting only · 10 hidden lines
Changes to src/Client.php
@@ -30,8 +30,8 @@ class Client formatting only
3030 /**
3131 * Constructor.
3232 *
33 * @param \GuzzleHttp\Client $client
34 * @param \Psr\Log\LoggerInterface $logger
33 * @param \GuzzleHttp\Client $client
34 * @param \Psr\Log\LoggerInterface $logger
3535 */
3636 public function __construct(GuzzleClient $client, LoggerInterface $logger)
3737 {
formatting only · 8 hidden lines
Changes to src/Client.php
@@ -67,7 +67,7 @@ class Client formatting only
6767 *
6868 * The returned promise is fulfilled with a collection of results.
6969 *
70 * @param \Illuminate\Support\Collection|\GuzzleHttp\Promise\PromiseInterface[] $promises
70 * @param \Illuminate\Support\Collection|\GuzzleHttp\Promise\PromiseInterface[] $promises
7171 * @return \GuzzleHttp\Promise\PromiseInterface
7272 */
7373 protected function settle(Collection $promises)
formatting only · 8 hidden lines
Changes to src/Client.php
@@ -86,7 +86,7 @@ class Client formatting only
8686 /**
8787 * Put the body of the fulfilled promise into the results.
8888 *
89 * @param \Illuminate\Support\Collection|object[] $results
89 * @param \Illuminate\Support\Collection|object[] $results
9090 * @return \Closure
9191 */
9292 protected function onFulfilled(Collection $results)
formatting only · 8 hidden lines
Changes to src/Client.php
@@ -99,7 +99,7 @@ class Client formatting only
9999 /**
100100 * Handle the rejected promise and put the errors into the results.
101101 *
102 * @param \Illuminate\Support\Collection|object[] $results
102 * @param \Illuminate\Support\Collection|object[] $results
103103 * @return \Closure
104104 */
105105 protected function onRejected(Collection $results)
formatting only · 8 hidden lines
Changes to src/Client.php
@@ -117,7 +117,7 @@ class Client formatting only
117117 /**
118118 * Transform a request exception into a result object.
119119 *
120 * @param \GuzzleHttp\Exception\RequestException $e
120 * @param \GuzzleHttp\Exception\RequestException $e
121121 * @return \stdClass
122122 */
123123 protected function handleException(RequestException $e)
formatting only · 8 hidden lines
Changes to src/Client.php
@@ -151,7 +151,7 @@ class Client formatting only
151151 /**
152152 * Transform the response body into a result object.
153153 *
154 * @param \Psr\Http\Message\ResponseInterface $response
154 * @param \Psr\Http\Message\ResponseInterface $response
155155 * @return \stdClass
156156 */
157157 protected function getBody(ResponseInterface $response)