@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getLastError() |
69 | 69 | { |
70 | - return $this->errors[count($this->errors) - 1]; |
|
70 | + return $this->errors[count($this->errors)-1]; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | // asignar cabecera |
132 | 132 | foreach ($headers as $key => &$value) { |
133 | - $value = $key.': '.$value; |
|
133 | + $value = $key . ': ' . $value; |
|
134 | 134 | } |
135 | 135 | // asignar cabecera |
136 | 136 | curl_setopt($curl, CURLOPT_HTTPHEADER, array_values($headers)); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | private function parseResponseStatus($response_line) |
209 | 209 | { |
210 | 210 | if (is_array($response_line)) { |
211 | - $response_line = $response_line[count($response_line) - 1]; |
|
211 | + $response_line = $response_line[count($response_line)-1]; |
|
212 | 212 | } |
213 | 213 | $parts = explode(' ', $response_line, 3); |
214 | 214 | return [ |