@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $ofxHeader = preg_replace('/^\n+/m', '', $ofxHeader); |
| 41 | 41 | |
| 42 | 42 | // Check if it's an XML file (OFXv2) |
| 43 | - if(preg_match('/^<\?xml/', $ofxHeader) === 1) { |
|
| 43 | + if (preg_match('/^<\?xml/', $ofxHeader) === 1) { |
|
| 44 | 44 | // Only parse OFX headers and not XML headers. |
| 45 | 45 | $ofxHeader = preg_replace('/<\?xml .*?\?>\n?/', '', $ofxHeader); |
| 46 | 46 | $ofxHeader = preg_replace(['/"/', '/\?>/', '/<\?OFX/i'], '', $ofxHeader); |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $agencyNumber = $xml->BANKACCTFROM->BRANCHID ?? 'N/A'; |
| 128 | 128 | $routingNumber = $xml->BANKACCTFROM->BANKID ?? 'N/A'; |
| 129 | 129 | $balance = $xml->LEDGERBAL->BALAMT ?? 'N/A'; |
| 130 | - $balanceDate = (null !== $xml->LEDGERBAL->DTASOF) ? self::parseDate($xml->LEDGERBAL->DTASOF) : new DateTime(); |
|
| 130 | + $balanceDate = (null !== $xml->LEDGERBAL->DTASOF) ? self::parseDate($xml->LEDGERBAL->DTASOF) : new DateTime(); |
|
| 131 | 131 | $statement = self::parseStatement($xml); |
| 132 | 132 | return new BankAccount( |
| 133 | 133 | $accountNumber, |
@@ -215,8 +215,8 @@ discard block |
||
| 215 | 215 | $accounts = []; |
| 216 | 216 | foreach ($xml->ACCTINFO as $account) { |
| 217 | 217 | $accounts[] = new AccountInfo( |
| 218 | - (string)$account->DESC, |
|
| 219 | - (string)$account->ACCTID |
|
| 218 | + (string) $account->DESC, |
|
| 219 | + (string) $account->ACCTID |
|
| 220 | 220 | ); |
| 221 | 221 | } |
| 222 | 222 | |