@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $responseLine = $socket->getLine(); |
103 | 103 | $xml = new \SimpleXMLElement($responseLine); |
104 | 104 | $json = json_encode($xml); |
105 | - $responseLine = json_decode($json,TRUE); |
|
105 | + $responseLine = json_decode($json, TRUE); |
|
106 | 106 | $responseName = preg_replace('#^(\S+).*$#s', '$1', $responseLine["@attributes"]['status']); |
107 | 107 | if ($responseName === "KO") { |
108 | 108 | $exceptionType = $responseLine['@attributes']['error-code'] ?? Response::RESPONSE_SERVER_ERROR; |
@@ -205,10 +205,10 @@ discard block |
||
205 | 205 | * |
206 | 206 | * @return \DOMDocument |
207 | 207 | */ |
208 | - protected function build_query($name, $action = false, $attributes = [], $parameters = []){ |
|
208 | + protected function build_query($name, $action = false, $attributes = [], $parameters = []) { |
|
209 | 209 | $dom = new \DOMDocument("1.0", "utf-8"); |
210 | 210 | $root = $dom->createElement($name); |
211 | - if($action) |
|
211 | + if ($action) |
|
212 | 212 | $root->setAttribute('action', $action); |
213 | 213 | foreach ($attributes as $key => $value) { |
214 | 214 | $root->setAttribute($key, $value); |