Code Duplication    Length = 8-8 lines in 2 locations

code/model/TypesAndValues/ProductAttributeType.php 1 location

@@ 190-197 (lines=8) @@
187
     * @param String | Null $action - e.g. edit
188
     * @return String
189
     */
190
    public function CMSEditLink($action = null)
191
    {
192
        return Controller::join_links(
193
            Director::baseURL(),
194
            "/admin/product-config/".$this->ClassName."/EditForm/field/".$this->ClassName."/item/".$this->ID."/",
195
            $action
196
        );
197
    }
198
199
    /**
200
     * add more values to a type

code/model/TypesAndValues/ProductAttributeValue.php 1 location

@@ 156-163 (lines=8) @@
153
     * @param String | Null $action - e.g. edit
154
     * @return String
155
     */
156
    public function CMSEditLink($action = null)
157
    {
158
        return Controller::join_links(
159
            Director::baseURL(),
160
            "/admin/product-config/".$this->ClassName."/EditForm/field/".$this->ClassName."/item/".$this->ID."/",
161
            $action
162
        );
163
    }
164
165
    /**
166
     * casted variable