Test Setup Failed
Pull Request — main (#1)
by
unknown
13:13
created
src/OFXUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/OFX.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.