Completed
Pull Request — behat-2.x (#43)
by Timothée
02:50
created
src/Xml/XmlStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Xml/XmlContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Xml/Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.