Passed
Push — master ( 8f2f8a...8eb6c3 )
by Sebastian
03:17
created
src/XMLHelper/Converter.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,8 +84,7 @@  discard block
 block discarded – undo
84 84
         try
85 85
         {
86 86
             return self::fromElement(new SimpleXMLElement($xmlString));
87
-        }
88
-        catch (Exception $e)
87
+        } catch (Exception $e)
89 88
         {
90 89
             throw new XMLHelper_Exception(
91 90
                 'Cannot create new element from string.',
@@ -140,8 +139,7 @@  discard block
 block discarded – undo
140 139
             unset($this->xml);
141 140
 
142 141
             return $this->json;
143
-        }
144
-        catch (Exception $e)
142
+        } catch (Exception $e)
145 143
         {
146 144
             throw new XMLHelper_Exception(
147 145
                 'Could not convert the XML source to JSON',
Please login to merge, or discard this patch.
src/XMLHelper/DOMErrors.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
             if($error instanceof XMLHelper_DOMErrors_Error)
41 41
             {
42 42
                 $this->errors[] = $error;
43
-            }
44
-            else if($error instanceof LibXMLError)
43
+            } else if($error instanceof LibXMLError)
45 44
             {
46 45
                 $this->errors[] = new XMLHelper_DOMErrors_Error($error);
47 46
             }
Please login to merge, or discard this patch.
src/XMLHelper/DOMErrors/Error.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
         try
59 59
         {
60 60
             $data = json_decode($serialized, true, 512, JSON_THROW_ON_ERROR);
61
-        }
62
-        catch (JsonException $e)
61
+        } catch (JsonException $e)
63 62
         {
64 63
             throw new XMLHelper_Exception(
65 64
                 'Could not unserialize error data',
Please login to merge, or discard this patch.