Completed
Branch 0.4-dev (f926df)
by Evgenij
04:00
created
src/Configuration/StreamContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
         }
57 57
 
58 58
         $map = [
59
-            'null'     => [ $this, 'createFromNull' ],
60
-            'resource' => [ $this, 'createFromResource' ],
61
-            'array'    => [ $this, 'createFromArray' ],
59
+            'null'     => [$this, 'createFromNull'],
60
+            'resource' => [$this, 'createFromResource'],
61
+            'array'    => [$this, 'createFromArray'],
62 62
         ];
63 63
 
64 64
         $type = strtolower(gettype($settings));
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     private function createFromArray(array $settings)
108 108
     {
109 109
         return stream_context_create(
110
-            isset($settings[ 'options' ]) ? $settings[ 'options' ] : [],
111
-            isset($settings[ 'params' ]) ? $settings[ 'params' ] : []
110
+            isset($settings['options']) ? $settings['options'] : [],
111
+            isset($settings['params']) ? $settings['params'] : []
112 112
         );
113 113
     }
114 114
 }
Please login to merge, or discard this patch.
src/RequestExecutor/Pipeline/PushbackIterator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,8 +163,7 @@
 block discarded – undo
163 163
         $this->popLastPushedBackItem();
164 164
 
165 165
         $result .= $this->hasUnreadItem() ?
166
-            array_shift($this->unreadItems) :
167
-            (string) $this->nestedIterator->current();
166
+            array_shift($this->unreadItems) : (string) $this->nestedIterator->current();
168 167
 
169 168
         while ($this->hasUnreadItem() && strlen($result) < $this->chunkSize) {
170 169
             $result .= array_shift($this->unreadItems);
Please login to merge, or discard this patch.