@@ -45,22 +45,22 @@ |
||
45 | 45 | |
46 | 46 | $doc = simplexml_load_string($rawResponse); |
47 | 47 | foreach (SendMethods::all() as $method) { |
48 | - if (! isset($doc->$method)) { |
|
48 | + if (!isset($doc->$method)) { |
|
49 | 49 | continue; |
50 | 50 | } |
51 | 51 | |
52 | 52 | $element = $doc->$method; |
53 | 53 | |
54 | - if (! isset($element->status)) { |
|
54 | + if (!isset($element->status)) { |
|
55 | 55 | throw new UnknownErrorResponseException('Missing response status value from Skebby', $rawResponse); |
56 | 56 | } |
57 | 57 | |
58 | - $this->status = (string)$element->status; |
|
59 | - $this->messageId = isset($element->id) ? (string)$element->id : null; |
|
58 | + $this->status = (string) $element->status; |
|
59 | + $this->messageId = isset($element->id) ? (string) $element->id : null; |
|
60 | 60 | |
61 | - if (! $this->isSuccessful()) { |
|
62 | - $this->code = isset($element->code) ? (string)$element->code : null; |
|
63 | - $this->errorMessage = isset($element->message) ? (string)$element->message : 'Unknown error'; |
|
61 | + if (!$this->isSuccessful()) { |
|
62 | + $this->code = isset($element->code) ? (string) $element->code : null; |
|
63 | + $this->errorMessage = isset($element->message) ? (string) $element->message : 'Unknown error'; |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | return; |