Code Duplication    Length = 10-10 lines in 2 locations

app/code/community/Mygento/Payture/Block/Info.php 1 location

@@ 77-86 (lines=10) @@
74
        return Mage::helper("adminhtml")->getUrl("adminhtml/payture_index/complete/", array('_secure' => true, 'order' => $this->getOid()));
75
    }
76
77
    public function getState()
78
    {
79
        $collection = Mage::getModel('payture/keys')->getCollection();
80
        $collection->addFieldToFilter('orderid', $this->getOid());
81
        if (count($collection) == 0) {
82
            return false;
83
        }
84
        $item = $collection->getFirstItem();
85
        return $item->getState();
86
    }
87
88
    public function getPaytureName()
89
    {

app/code/community/Mygento/Payture/Helper/Data.php 1 location

@@ 60-69 (lines=10) @@
57
        }
58
    }
59
60
    public function decodeid($link)
61
    {
62
        $collection = Mage::getModel('payture/keys')->getCollection();
63
        $collection->addFieldToFilter('hkey', $link);
64
        if (count($collection) == 0) {
65
            return false;
66
        }
67
        $item = $collection->getFirstItem();
68
        return $item;
69
    }
70
71
    public function addtransaction($order)
72
    {