@@ -34,8 +34,8 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * |
37 | - * @param unknown $xmlString |
|
38 | 37 | * @throws \Exception |
38 | + * @param string $ofxContent |
|
39 | 39 | * @return \Adelarcubs\OFXParser\Ofx |
40 | 40 | */ |
41 | 41 | public static function loadFromString($ofxContent) |
@@ -45,7 +45,7 @@ |
||
45 | 45 | libxml_use_internal_errors(true); |
46 | 46 | $xml = simplexml_load_string($xml); |
47 | 47 | $errors = libxml_get_errors(); |
48 | - if (! empty($errors)) { |
|
48 | + if (!empty($errors)) { |
|
49 | 49 | throw new \Exception("Failed to parse OFX: " . var_export($errors, true)); |
50 | 50 | } |
51 | 51 |
@@ -79,8 +79,9 @@ |
||
79 | 79 | $line .= '<' . $lastClosedTag; |
80 | 80 | } |
81 | 81 | } else { |
82 | - if ($lastClosedTag == $tag) |
|
83 | - $line = ''; |
|
82 | + if ($lastClosedTag == $tag) { |
|
83 | + $line = ''; |
|
84 | + } |
|
84 | 85 | } |
85 | 86 | $xml .= $line . "\n"; |
86 | 87 | } |