Completed
Push — master ( 0c780c...ba35bd )
by Valentin
04:29
created
src/Connection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.