@@ -122,13 +122,13 @@ |
||
122 | 122 | { |
123 | 123 | try { |
124 | 124 | $data = file_get_contents($file); |
125 | - if ($data!==false) { |
|
125 | + if ($data !== false) { |
|
126 | 126 | return $this->parser->parse($data); |
127 | 127 | } |
128 | 128 | throw new \InvalidArgumentException("file could not be loaded"); |
129 | 129 | } |
130 | 130 | catch (\Exception $e) { |
131 | - throw new \InvalidArgumentException("file could not be loaded (".$e->getMessage().")"); |
|
131 | + throw new \InvalidArgumentException("file could not be loaded (" . $e->getMessage() . ")"); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 |
@@ -126,8 +126,7 @@ |
||
126 | 126 | return $this->parser->parse($data); |
127 | 127 | } |
128 | 128 | throw new \InvalidArgumentException("file could not be loaded"); |
129 | - } |
|
130 | - catch (\Exception $e) { |
|
129 | + } catch (\Exception $e) { |
|
131 | 130 | throw new \InvalidArgumentException("file could not be loaded (".$e->getMessage().")"); |
132 | 131 | } |
133 | 132 | } |