diff --git a/src/Client.php b/src/Client.php index 31f48ab..13f640f 100644 --- a/src/Client.php +++ b/src/Client.php @@ -75,6 +75,7 @@ private function getClient() * @param $method * @param $endpoint * @param array $payload + * * @return \React\Promise\Promise|\React\Promise\PromiseInterface */ private function sendRequest($method, $endpoint, array $payload = []) @@ -120,7 +121,7 @@ private function sendRequest($method, $endpoint, array $payload = []) }); - $request->on('error', function($reason) use ($deferred) { + $request->on('error', function ($reason) use ($deferred) { $deferred->reject($reason); }); @@ -235,7 +236,7 @@ public function getConfig() /** * Update scrapoxy config. - * + * * @doc http://scrapoxy.readthedocs.io/en/master/advanced/api/index.html#update-the-configuration * * @param array $config @@ -249,7 +250,7 @@ public function updateConfig(array $config = []) /** * Get all instances. - * + * * @doc http://scrapoxy.readthedocs.io/en/master/advanced/api/index.html#get-all-instances * * @return \React\Promise\PromiseInterface|static