Code Duplication    Length = 11-11 lines in 2 locations

src/Provider31.php 2 locations

@@ 167-177 (lines=11) @@
164
     *
165
     *      @return Provider31\Response\Confirm
166
     */
167
    private function response_Confirm()
168
    {
169
        Log::instance()->add(sprintf('Confirm("%s")', $this->request->PaymentId()));
170
171
        $orderdate = self::$cb->confirm(
172
            $this->request->PaymentId()
173
        );
174
175
        // Sending a response
176
        return new Provider31\Response\Confirm($orderdate);
177
    }
178
179
    /**
180
     *      run cancel callback and generate a response
@@ 184-194 (lines=11) @@
181
     *
182
     *      @return Provider31\Response\Cancel
183
     */
184
    private function response_Cancel()
185
    {
186
        Log::instance()->add(sprintf('Cancel("%s")', $this->request->PaymentId()));
187
188
        $canceldate = self::$cb->cancel(
189
            $this->request->PaymentId()
190
        );
191
192
        // Sending a response
193
        return new Provider31\Response\Cancel($canceldate);
194
    }
195
196
    /**
197
     *      Generates an xml with an error message