Completed
Push — master ( 77c36b...b3e9fb )
by Charles
01:53
created
components/HttpClientComponent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         parent::init();
52 52
         $this->client = new Client($this->clientOptions);
53 53
 
54
-        $this->client->on(Client::EVENT_BEFORE_SEND, function (RequestEvent $e) {
54
+        $this->client->on(Client::EVENT_BEFORE_SEND, function(RequestEvent $e) {
55 55
             Yii::info([
56 56
                 'message' => sprintf('Sending HTTP request [%s] %s', $e->request->getMethod(), $e->request->getUrl()),
57 57
                 'data' => [
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             ], 'httpclient');
64 64
         });
65 65
 
66
-        $this->client->on(Client::EVENT_AFTER_SEND, function (RequestEvent $e) {
66
+        $this->client->on(Client::EVENT_AFTER_SEND, function(RequestEvent $e) {
67 67
             Yii::info([
68 68
                 'message' => sprintf('Recieved HTTP response HTTP [%s] | [%s] %s', $e->response->getStatusCode(), $e->request->getMethod(), $e->request->getUrl()),
69 69
                 'data' => [
Please login to merge, or discard this patch.