Code Duplication    Length = 4-4 lines in 4 locations

Action/CaptureAction.php 4 locations

@@ 88-91 (lines=4) @@
85
86
        $this->gateway->execute($httpRequest = new GetHttpRequest());
87
88
        if (isset($httpRequest->query['abort'])) {
89
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_ABORTED])]);
90
            return;
91
        }
92
93
        if (isset($httpRequest->query['fail'])) {
94
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_FAILED])]);
@@ 93-96 (lines=4) @@
90
            return;
91
        }
92
93
        if (isset($httpRequest->query['fail'])) {
94
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_FAILED])]);
95
            return;
96
        }
97
        $this->gateway->execute(new AssertPaymentPage($model));
98
99
        $this->gateway->execute($status = new GetHumanStatus($model));
@@ 119-122 (lines=4) @@
116
117
        $this->gateway->execute($httpRequest = new GetHttpRequest());
118
119
        if (isset($httpRequest->query['abort'])) {
120
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_ABORTED])]);
121
            return;
122
        }
123
124
        if (isset($httpRequest->query['fail'])) {
125
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_FAILED])]);
@@ 124-127 (lines=4) @@
121
            return;
122
        }
123
124
        if (isset($httpRequest->query['fail'])) {
125
            $model->replace(['Transaction' => array_merge($model['Transaction'], ['Status' => Constants::STATUS_FAILED])]);
126
            return;
127
        }
128
        $this->gateway->execute(new AuthorizeTransaction($model));
129
130
        $this->gateway->execute($status = new GetHumanStatus($model));