Code Duplication    Length = 9-9 lines in 2 locations

src/AffilinetEx.php 1 location

@@ 59-67 (lines=9) @@
56
                        $transaction["udpate_date"] = $transactionObject->CheckDate;        // Future use - <PN>
57
                        $transaction["merchantId"] = $transactionObject->ProgramId;
58
                        $transaction["custom_id"] = $transactionObject->SubId;
59
                        if ($transaction['status'] == 'Confirmed') {
60
                            $transaction['status'] = \Oara\Utilities::STATUS_CONFIRMED;
61
                        } else
62
                            if ($transaction['status'] == 'Open') {
63
                                $transaction['status'] = \Oara\Utilities::STATUS_PENDING;
64
                            } else
65
                                if ($transaction['status'] == 'Cancelled') {
66
                                    $transaction['status'] = \Oara\Utilities::STATUS_DECLINED;
67
                                }
68
                        $totalTransactions[] = $transaction;
69
                    }
70
                    $currentPage++;

src/TradeDoublerEx.php 1 location

@@ 181-189 (lines=9) @@
178
                        }
179
180
                        $transaction['status'] = \Oara\Utilities::STATUS_PENDING;
181
                        if ($transactionExportArray[12] == 'A') {
182
                            $transaction['status'] = \Oara\Utilities::STATUS_CONFIRMED;
183
                        } else
184
                            if ($transactionExportArray[12] == 'P') {
185
                                $transaction['status'] = \Oara\Utilities::STATUS_PENDING;
186
                            } else
187
                                if ($transactionExportArray[12] == 'D') {
188
                                    $transaction['status'] = \Oara\Utilities::STATUS_DECLINED;
189
                                }
190
191
                        if ($transactionExportArray[20] != '') {
192
                            $transaction['amount'] = \Oara\Utilities::parseDouble($transactionExportArray[20]);