Completed
Push — master ( 1c759b...a2e648 )
by Indra
07:15
created
StreamResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
ServiceClient.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
     {
129 129
         // Modify provided callbacks to track results.
130 130
         $results = [];
131
-        $options['fulfilled'] = function ($v, $k) use (&$results, $options) {
131
+        $options['fulfilled'] = function($v, $k) use (&$results, $options) {
132 132
             if (isset($options['fulfilled'])) {
133 133
                 $options['fulfilled']($v, $k);
134 134
             }
135 135
             $results[$k] = $v;
136 136
         };
137
-        $options['rejected'] = function ($v, $k) use (&$results, $options) {
137
+        $options['rejected'] = function($v, $k) use (&$results, $options) {
138 138
             if (isset($options['rejected'])) {
139 139
                 $options['rejected']($v, $k);
140 140
             }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         // Execute multiple commands synchronously, then sort and return the results.
145 145
         return $this->executeAllAsync($commands, $options)
146
-            ->then(function () use (&$results) {
146
+            ->then(function() use (&$results) {
147 147
                 ksort($results);
148 148
 
149 149
                 return $results;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
         // Convert the iterator of commands to a generator of promises.
165 165
         $commands = Promise\iter_for($commands);
166
-        $promises = function () use ($commands) {
166
+        $promises = function() use ($commands) {
167 167
             foreach ($commands as $key => $command) {
168 168
                 if (!$command instanceof CommandInterface) {
169 169
                     throw new \InvalidArgumentException('The iterator must '
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
      */
215 215
     private function createCommandHandler()
216 216
     {
217
-        return function (CommandInterface $command) {
218
-            return Promise\coroutine(function () use ($command) {
217
+        return function(CommandInterface $command) {
218
+            return Promise\coroutine(function() use ($command) {
219 219
                 // Prepare the HTTP options.
220 220
                 $opts = $command['@http'] ?: [];
221 221
 
Please login to merge, or discard this patch.
Service.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Parser/ErrorParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
Parser/SpecificationParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.
ServiceInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 /*
4 4
  * This file is part of indragunawan/rest-service package.
Please login to merge, or discard this patch.