Code Duplication    Length = 9-9 lines in 2 locations

src/Intraface/modules/shop/Coordinator.php 1 location

@@ 485-493 (lines=9) @@
482
     *
483
     * @return boolean
484
     */
485
    private function setSent($order_id)
486
    {
487
        $order_id = (int)$order_id;
488
        if ($order_id == 0) {
489
            return 0;
490
        }
491
        $debtor = Debtor::factory($this->kernel, (int)$order_id);
492
        return $debtor->setSent();
493
    }
494
495
    /**
496
     * Returns payment methods

src/Intraface/modules/webshop/Webshop.php 1 location

@@ 383-391 (lines=9) @@
380
     *
381
     * @return boolean
382
     */
383
    public function setSent($order_id)
384
    {
385
        $order_id = (int)$order_id;
386
        if ($order_id == 0) {
387
            return 0;
388
        }
389
        $debtor = Debtor::factory($this->kernel, (int)$order_id);
390
        return $debtor->setSent();
391
    }
392
}
393