@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * |
| 22 | - * @param unknown $ofxFilePath |
|
| 22 | + * @param string $ofxFilePath |
|
| 23 | 23 | * @throws \InvalidArgumentException |
| 24 | 24 | * @return \Adelarcubs\OFXParser\Ofx |
| 25 | 25 | */ |
@@ -34,8 +34,8 @@ discard block |
||
| 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) |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public static function loadFromFile($ofxFilePath) |
| 27 | 27 | { |
| 28 | - if (! file_exists($ofxFilePath)) { |
|
| 28 | + if (!file_exists($ofxFilePath)) { |
|
| 29 | 29 | throw new \InvalidArgumentException("File '{$ofxFilePath}' could not be found"); |
| 30 | 30 | } |
| 31 | 31 | return static::loadFromString(file_get_contents($ofxFilePath)); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | libxml_use_internal_errors(true); |
| 45 | 45 | $xml = simplexml_load_string($xml); |
| 46 | 46 | $errors = libxml_get_errors(); |
| 47 | - if (! empty($errors)) { |
|
| 47 | + if (!empty($errors)) { |
|
| 48 | 48 | throw new \Exception("Failed to parse OFX: " . var_export($errors, true)); |
| 49 | 49 | } |
| 50 | 50 | |