Passed
Push — master ( 67284c...b0f0bc )
by ma
01:59
created
src/HttpRequest.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
                 throw new TException(StatusCode::COMMON_TINYMENG_REQUEST_METHOD,
102 102
                     '[httpPost]: POST request was aborted ! Request url :' . $url . ' , post request data : ' . var_export($param,true)
103 103
                 );
104
-            }elseif(intval($info["http_code"]) != $http_code){
104
+            } elseif(intval($info["http_code"]) != $http_code){
105 105
                 throw new TException(StatusCode::COMMON_TINYMENG_REQUEST_METHOD,
106 106
                     '[httpPost]: POST request was aborted ! Request url :' . $url . ' , post request data : ' . var_export($param,true).' ,return code : '.$info["http_code"] .' ,return content : '.$content
107 107
                 );
108 108
             } else {
109 109
                 return $content;
110 110
             }
111
-        }else{
111
+        } else{
112 112
             return $content;
113 113
         }
114 114
     }
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
                 throw new TException(StatusCode::COMMON_TINYMENG_REQUEST_METHOD,
180 180
                     '[httpGet]: GET request was aborted ! Request url :' . $url
181 181
                 );
182
-            }elseif(intval($info["http_code"]) != $http_code){
182
+            } elseif(intval($info["http_code"]) != $http_code){
183 183
                 throw new TException(StatusCode::COMMON_TINYMENG_REQUEST_METHOD,
184 184
                     '[httpGet]: GET request was aborted ! Request url :' . $url .' ,return code : '.$info["http_code"] .' ,return content : '.$content
185 185
                 );
186 186
             } else {
187 187
                 return $content;
188 188
             }
189
-        }else{
189
+        } else{
190 190
             return $content;
191 191
         }
192 192
     }
Please login to merge, or discard this patch.