Code Duplication    Length = 8-9 lines in 2 locations

src/Model/Offer/OfferCustom.php 1 location

@@ 44-52 (lines=9) @@
41
    /**
42
     * @return array
43
     */
44
    public function toArray()
45
    {
46
        return array_merge($this->getHeaderOptions(), [
47
            'typePrefix' => $this->getTypePrefix(),
48
            'vendor' => $this->getVendor(),
49
            'vendorCode' => $this->getVendorCode(),
50
            'model' => $this->getModel(),
51
        ], $this->getFooterOptions());
52
    }
53
54
    /**
55
     * @return string

src/Model/Offer/OfferSimple.php 1 location

@@ 39-46 (lines=8) @@
36
    /**
37
     * @return array
38
     */
39
    public function toArray()
40
    {
41
        return array_merge($this->getHeaderOptions(), [
42
            'name' => $this->getName(),
43
            'vendor' => $this->getVendor(),
44
            'vendorCode' => $this->getVendorCode(),
45
        ], $this->getFooterOptions());
46
    }
47
48
    /**
49
     * @return string