Passed
Branch master (77be93)
by Stefano
04:40
created
Category
src/ServiceClient.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
     {
90 90
         // Modify provided callbacks to track results.
91 91
         $results = [];
92
-        $options['fulfilled'] = function ($v, $k) use (&$results, $options) {
92
+        $options['fulfilled'] = function($v, $k) use (&$results, $options) {
93 93
             if (isset($options['fulfilled'])) {
94 94
                 $options['fulfilled']($v, $k);
95 95
             }
96 96
             $results[$k] = $v;
97 97
         };
98
-        $options['rejected'] = function ($v, $k) use (&$results, $options) {
98
+        $options['rejected'] = function($v, $k) use (&$results, $options) {
99 99
             if (isset($options['rejected'])) {
100 100
                 $options['rejected']($v, $k);
101 101
             }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         // Execute multiple commands synchronously, then sort and return the results.
106 106
         return $this->executeAllAsync($commands, $options)
107
-            ->then(function () use (&$results) {
107
+            ->then(function() use (&$results) {
108 108
                 ksort($results);
109 109
                 return $results;
110 110
             })
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
         // Convert the iterator of commands to a generator of promises.
122 122
         $commands = Promise\iter_for($commands);
123
-        $promises = function () use ($commands) {
123
+        $promises = function() use ($commands) {
124 124
             foreach ($commands as $key => $command) {
125 125
                 if (!$command instanceof CommandInterface) {
126 126
                     throw new \InvalidArgumentException('The iterator must '
@@ -161,8 +161,8 @@  discard block
 block discarded – undo
161 161
      */
162 162
     private function createCommandHandler()
163 163
     {
164
-        return function (CommandInterface $command) {
165
-            return Promise\coroutine(function () use ($command) {
164
+        return function(CommandInterface $command) {
165
+            return Promise\coroutine(function() use ($command) {
166 166
                 // Prepare the HTTP options.
167 167
                 $opts = $command['@http'] ?: [];
168 168
                 unset($command['@http']);
Please login to merge, or discard this patch.