Completed
Pull Request — behat-2.x (#42)
by Sébastien
04:44
created
src/Xml/XmlContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,8 +170,7 @@
 block discarded – undo
170 170
             if (!empty($actual)) {
171 171
                 throw new \Exception(sprintf("The element '%s' exists and contains '%s'.", $element , $elements));
172 172
             }
173
-        }
174
-        catch (\Exception $e) {
173
+        } catch (\Exception $e) {
175 174
         }
176 175
     }
177 176
 
Please login to merge, or discard this patch.
src/Xml/XmlStorage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
38 38
                     throw new \DomException($error->message . ' at line ' . $error->line);
39 39
                 }
40 40
             }
41
-        }
42
-        catch(\DOMException $e) {
41
+        } catch(\DOMException $e) {
43 42
             if ($throwExceptions) {
44 43
                 throw new \RuntimeException($e->getMessage());
45 44
             }
Please login to merge, or discard this patch.