@@ -84,8 +84,7 @@ discard block |
||
| 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 |
||
| 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', |
@@ -40,8 +40,7 @@ |
||
| 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 | } |
@@ -58,8 +58,7 @@ |
||
| 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', |