| @@ 151-156 (lines=6) @@ | ||
| 148 | return array(); |
|
| 149 | } |
|
| 150 | $arrResult = array(); |
|
| 151 | if (count( $arrMerchantID ) < 1) { |
|
| 152 | $merchants = $this->getMerchants(); |
|
| 153 | foreach ($merchants as $merchant) { |
|
| 154 | $arrMerchantID[$merchant->merchant_ID] = ['cid' => $merchant->merchant_ID, 'name' => $merchant->name]; |
|
| 155 | } |
|
| 156 | } |
|
| 157 | $transcationList = $this->_network->getTransactionList($arrMerchantID, $dateFrom, $dateTo); |
|
| 158 | foreach($transcationList as $transaction) { |
|
| 159 | $Transaction = Transaction::createInstance(); |
|
| @@ 193-198 (lines=6) @@ | ||
| 190 | $dateFrom->sub(new \DateInterval('P1D')); |
|
| 191 | } |
|
| 192 | $arrResult = array(); |
|
| 193 | if (count( $arrMerchantID ) < 1) { |
|
| 194 | $merchants = $this->getMerchants(); |
|
| 195 | foreach ($merchants as $merchant) { |
|
| 196 | $arrMerchantID[$merchant->merchant_ID] = ['cid' => $merchant->merchant_ID, 'name' => $merchant->name]; |
|
| 197 | } |
|
| 198 | } |
|
| 199 | $transcationList = $this->_network->getTransactionList( $arrMerchantID, $dateTo, $dateFrom ); |
|
| 200 | foreach ($transcationList as $transaction) { |
|
| 201 | $Transaction = Transaction::createInstance(); |
|