Code Duplication    Length = 11-11 lines in 2 locations

src/Provider31.php 2 locations

@@ 190-200 (lines=11) @@
187
     *
188
     *      @return Provider31\Response\Confirm
189
     */
190
    private function response_confirm()
191
    {
192
        Log::instance()->add(sprintf('Confirm("%s")', $this->request->PaymentId()));
193
194
        $orderdate = self::$cb->confirm(
195
            $this->request->PaymentId()
196
        );
197
198
        // Sending a response
199
        return new Provider31\Response\Confirm($orderdate);
200
    }
201
202
    /**
203
     *      run cancel callback and generate a response
@@ 207-217 (lines=11) @@
204
     *
205
     *      @return Provider31\Response\Cancel
206
     */
207
    private function response_cancel()
208
    {
209
        Log::instance()->add(sprintf('Cancel("%s")', $this->request->PaymentId()));
210
211
        $canceldate = self::$cb->cancel(
212
            $this->request->PaymentId()
213
        );
214
215
        // Sending a response
216
        return new Provider31\Response\Cancel($canceldate);
217
    }
218
219
    /**
220
     *      Generates an xml with an error message