Code Duplication    Length = 8-8 lines in 2 locations

src/Model/Category/CategoryReference.php 1 location

@@ 26-33 (lines=8) @@
23
{
24
    const TYPE_CATEGORY = 'category';
25
26
    public function fieldDefinitions()
27
    {
28
        return [
29
            static::TYPE_ID => [self::TYPE => 'string'],
30
            static::ID => [self::TYPE => 'string'],
31
            static::OBJ => [static::TYPE => '\Commercetools\Core\Model\Category\Category']
32
        ];
33
    }
34
35
    /**
36
     * @param $id

src/Model/Common/ResourceIdentifier.php 1 location

@@ 24-31 (lines=8) @@
21
    const ID = 'id';
22
    const KEY = 'key';
23
24
    public function fieldDefinitions()
25
    {
26
        return [
27
            static::TYPE_ID => [self::TYPE => 'string'],
28
            static::ID => [self::TYPE => 'string'],
29
            static::KEY => [self::TYPE => 'string']
30
        ];
31
    }
32
33
    /**
34
     * @param $type