Completed
Pull Request — master (#6)
by
unknown
03:37 queued 01:28
created
src/Transport/AbstractTransport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
 
108 108
         $this->options = array_filter(
109 109
             $this->options,
110
-            function ($transportOption) use ($option) {
110
+            function($transportOption) use ($option) {
111 111
                 /** @var \Jgut\Spiral\Option $transportOption */
112 112
                 return !($transportOption->getOption() === $option);
113 113
             }
Please login to merge, or discard this patch.
tests/Spiral/ClientTest.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 <!doctype html>
86 86
 <html>
87 87
 </html>
88
-RESP;
88
+resp;
89 89
         $transferInfo = [
90 90
             'header_size' => 452,
91 91
             'http_code' => 200,
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  * @license https://raw.githubusercontent.com/juliangut/spiral/master/LICENSE
8 8
  */
9 9
 
10
-require_once __DIR__ . '/../vendor/autoload.php';
10
+require_once __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Spiral/Option/OptionCallbackTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         $option = new OptionCallback(CURLOPT_HTTPAUTH);
40 40
 
41
-        $option->setCallback(function ($value) {
42
-            return $value . ' aaa';
41
+        $option->setCallback(function($value) {
42
+            return $value.' aaa';
43 43
         });
44 44
         $option->setValue('bbb');
45 45
         $this->assertEquals('bbb aaa', $option->getValue());
Please login to merge, or discard this patch.
tests/Spiral/Option/OptionFileTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function testAccessors()
38 38
     {
39
-        $file = sys_get_temp_dir() . '/JgutSpiralOptionFile';
39
+        $file = sys_get_temp_dir().'/JgutSpiralOptionFile';
40 40
         touch($file);
41 41
 
42 42
         $option = new OptionFile(CURLOPT_COOKIEFILE);
Please login to merge, or discard this patch.
src/Transport/Curl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
                 true
142 142
             )) {
143 143
                 $parameters = null;
144
-                $uri .= ((strpos($uri, '?') !== false) ? '&' : '?') . http_build_query($vars, '', '&');
144
+                $uri .= ((strpos($uri, '?') !== false) ? '&' : '?').http_build_query($vars, '', '&');
145 145
             } elseif ($method !== Transport::METHOD_POST || $flags['post_multipart'] !== true) {
146 146
                 $parameters = http_build_query($vars, '', '&');
147 147
             }
Please login to merge, or discard this patch.
src/Option/OptionFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -313,19 +313,19 @@
 block discarded – undo
313 313
     {
314 314
         switch ($option) {
315 315
             case CURLOPT_HTTP_VERSION:
316
-                $optionClass->setCallback(function ($value) {
316
+                $optionClass->setCallback(function($value) {
317 317
                     $value = number_format((float) $value, 1, '.', '');
318 318
 
319 319
                     if (!preg_match('/^1.(0|1)$/', $value)) {
320 320
                         throw new OptionException(sprintf('"%s" is not a valid HTTP version', $value));
321 321
                     }
322 322
 
323
-                    return constant('CURL_HTTP_VERSION_' . str_replace('.', '_', $value));
323
+                    return constant('CURL_HTTP_VERSION_'.str_replace('.', '_', $value));
324 324
                 });
325 325
                 break;
326 326
 
327 327
             case CURLOPT_COOKIE:
328
-                $optionClass->setCallback(function ($value) {
328
+                $optionClass->setCallback(function($value) {
329 329
                     if (is_array($value)) {
330 330
                         $value = http_build_query($value, '', '; ');
331 331
                     }
Please login to merge, or discard this patch.