Passed
Push — master ( b80564...a1cca1 )
by Tobias
03:12
created
lib/Client/MultiCurl.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $options = $this->validateOptions($options);
97 97
         $originalCallback = $options->get('callback');
98 98
         $responseToReturn = null;
99
-        $options = $options->add(['callback' => function (RequestInterface $request, ResponseInterface $response = null, ClientException $e = null) use (&$responseToReturn, $originalCallback) {
99
+        $options = $options->add(['callback' => function(RequestInterface $request, ResponseInterface $response = null, ClientException $e = null) use (&$responseToReturn, $originalCallback) {
100 100
             $responseToReturn = $response;
101 101
             $originalCallback($request, $response, $e);
102 102
 
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
     {
116 116
         parent::configureOptions($resolver);
117 117
 
118
-        $resolver->setDefault('callback', function (RequestInterface $request, ResponseInterface $response = null, ClientException $e = null) {
118
+        $resolver->setDefault('callback', function(RequestInterface $request, ResponseInterface $response = null, ClientException $e = null) {
119 119
         });
120 120
         $resolver->setAllowedTypes('callback', 'callable');
121 121
 
122
-        $resolver->setDefault('push_function_callback', function ($parent, $pushed, $headers) {
122
+        $resolver->setDefault('push_function_callback', function($parent, $pushed, $headers) {
123 123
             return CURL_PUSH_OK;
124 124
         });
125 125
         $resolver->setAllowedTypes('push_function_callback', ['callable', 'null']);
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             curl_multi_setopt(
302 302
                 $this->curlm,
303 303
                 CURLMOPT_PUSHFUNCTION,
304
-                $this->pushCb[] = function ($parent, $pushed, $headers) use ($userCallbacks) {
304
+                $this->pushCb[] = function($parent, $pushed, $headers) use ($userCallbacks) {
305 305
                     // If any callback say no, then do not accept.
306 306
                     foreach ($userCallbacks as $callback) {
307 307
                         if (CURL_PUSH_DENY === $callback($parent, $pushed, $headers)) {
Please login to merge, or discard this patch.