Passed
Push — master ( 836787...6b2853 )
by
unknown
02:43
created
src/Manticoresearch/Transport/Http.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         curl_setopt($conn, CURLOPT_CUSTOMREQUEST, $method);
57 57
         curl_setopt($conn, CURLOPT_HTTPHEADER, $headers);
58 58
 
59
-        if ($connection->getConnectTimeout()>0) {
59
+        if ($connection->getConnectTimeout() > 0) {
60 60
             curl_setopt($conn, CURLOPT_CONNECTTIMEOUT, $connection->getConnectTimeout());
61 61
         }
62 62
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             curl_setopt(
66 66
                 $conn,
67 67
                 CURLOPT_USERPWD,
68
-                $connection->getConfig('username').":".$connection->getConfig('password')
68
+                $connection->getConfig('username') . ":" . $connection->getConfig('password')
69 69
             );
70 70
         }
71 71
         if ($connection->getConfig('proxy') !== null) {
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $status = curl_getinfo($conn, CURLINFO_HTTP_CODE);
86 86
         if (isset($params['responseClass'])) {
87 87
             $responseClass = $params['responseClass'];
88
-            $responseClassParams = isset($params['responseClassParams'])?$params['responseClassParams']:[];
88
+            $responseClassParams = isset($params['responseClassParams']) ? $params['responseClassParams'] : [];
89 89
             $response = new $responseClass($responseString, $status, $responseClassParams);
90 90
         } else {
91 91
             $response = new Response($responseString, $status);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 'body' => $request->getBody()
100 100
             ]);
101 101
         //hard error
102
-        if ($errorno>0) {
102
+        if ($errorno > 0) {
103 103
             $error = curl_error($conn);
104 104
 
105 105
             self::$curl = null;
Please login to merge, or discard this patch.