Code Duplication    Length = 9-9 lines in 2 locations

code/decorator/GSTTaxDecorator.php 2 locations

@@ 30-38 (lines=9) @@
27
     * for variations, use product for data
28
     * @return DataList
29
     */
30
    public function BuyableCalculatedExcludedFrom()
31
    {
32
        if ($this->owner instanceof ProductVariation) {
33
            if ($product = $this->owner->Product()) {
34
                return $product->ExcludedFrom();
35
            }
36
        }
37
        return $this->owner->ExcludedFrom();
38
    }
39
40
    /**
41
     * for variations, use product for data
@@ 44-52 (lines=9) @@
41
     * for variations, use product for data
42
     * @return DataList
43
     */
44
    public function BuyableCalculatedAdditionalTax()
45
    {
46
        if ($this->owner instanceof ProductVariation) {
47
            if ($product = $this->owner->Product()) {
48
                return $product->AdditionalTax();
49
            }
50
        }
51
        return $this->owner->AdditionalTax();
52
    }
53
54
55
    /**