Code Duplication    Length = 7-7 lines in 2 locations

src/Model/CustomField/CustomFieldObjectDraft.php 1 location

@@ 23-29 (lines=7) @@
20
 */
21
class CustomFieldObjectDraft extends JsonObject
22
{
23
    public function fieldDefinitions()
24
    {
25
        return [
26
            'type' => [static::TYPE => '\Commercetools\Core\Model\Type\TypeReference'],
27
            'fields' => [static::TYPE => '\Commercetools\Core\Model\CustomField\FieldContainer']
28
        ];
29
    }
30
31
    /**
32
     * @param $typeKey

src/Model/CustomField/CustomFieldObject.php 1 location

@@ 21-27 (lines=7) @@
18
 */
19
class CustomFieldObject extends JsonObject
20
{
21
    public function fieldDefinitions()
22
    {
23
        return [
24
            'type' => [static::TYPE => '\Commercetools\Core\Model\Type\TypeReference'],
25
            'fields' => [static::TYPE => '\Commercetools\Core\Model\CustomField\FieldContainer']
26
        ];
27
    }
28
}
29