Code Duplication    Length = 9-10 lines in 2 locations

class/oledrion_packing.php 1 location

@@ 95-104 (lines=10) @@
92
     * @param  string $format
93
     * @return array
94
     */
95
    public function toArray($format = 's')
96
    {
97
        $oledrion_Currency               = Oledrion_Currency::getInstance();
98
        $ret                             = array();
99
        $ret                             = parent::toArray($format);
100
        $ret['packing_price_fordisplay'] = $oledrion_Currency->amountForDisplay($this->getVar('packing_price'));
101
        $ret['packing_image_url']        = $this->getPictureUrl();
102
103
        return $ret;
104
    }
105
}
106
107
/**

class/oledrion_vat.php 1 location

@@ 48-56 (lines=9) @@
45
     * @param  string $format
46
     * @return array
47
     */
48
    public function toArray($format = 's')
49
    {
50
        $ret                      = array();
51
        $ret                      = parent::toArray($format);
52
        $oledrion_Currency        = Oledrion_Currency::getInstance();
53
        $ret['vat_rate_formated'] = $oledrion_Currency->amountInCurrency((float)$this->getVar('vat_rate', 'e'));
54
55
        return $ret;
56
    }
57
}
58
59
/**