@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | try { |
| 30 | 30 | return new Xml($this->responseStorage->read()); |
| 31 | - } catch(\DOMException $e) { |
|
| 31 | + } catch (\DOMException $e) { |
|
| 32 | 32 | if ($throwExceptions) { |
| 33 | 33 | throw new \RuntimeException($e->getMessage()); |
| 34 | 34 | } |
@@ -161,7 +161,7 @@ |
||
| 161 | 161 | $elements = $this->theXmlElementShouldExist("{$element}[@{$attribute}]"); |
| 162 | 162 | $actual = $elements->item(0)->getAttribute($attribute); |
| 163 | 163 | if (!empty($actual)) { |
| 164 | - throw new \Exception(sprintf("The element '%s' exists and contains '%s'.", $element , $elements)); |
|
| 164 | + throw new \Exception(sprintf("The element '%s' exists and contains '%s'.", $element, $elements)); |
|
| 165 | 165 | } |
| 166 | 166 | } |
| 167 | 167 | catch (\Exception $e) { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | // "fix" queries to the default namespace if any namespaces are defined |
| 53 | 53 | if (!empty($namespaces) && empty($defaultNamespacePrefix) && !empty($defaultNamespaceUri)) { |
| 54 | - for ($i=0; $i < 2; ++$i) { |
|
| 54 | + for ($i = 0; $i < 2; ++$i) { |
|
| 55 | 55 | $element = preg_replace('/\/(\w+)(\[[^]]+\])?\//', '/rootns:$1$2/', $element); |
| 56 | 56 | } |
| 57 | 57 | $element = preg_replace('/\/(\w+)(\[[^]]+\])?$/', '/rootns:$1$2', $element); |