Code Duplication    Length = 8-8 lines in 2 locations

src/Schema/Schema.php 2 locations

@@ 72-79 (lines=8) @@
69
    /**
70
     * @inheritdoc
71
     */
72
    public static function hasAttributeMapping(string $jsonName): bool
73
    {
74
        $mappings = static::getMappings();
75
76
        return
77
            array_key_exists(static::SCHEMA_ATTRIBUTES, $mappings) === true &&
78
            array_key_exists($jsonName, $mappings[static::SCHEMA_ATTRIBUTES]) === true;
79
    }
80
81
    /**
82
     * @inheritdoc
@@ 84-91 (lines=8) @@
81
    /**
82
     * @inheritdoc
83
     */
84
    public static function hasRelationshipMapping(string $jsonName): bool
85
    {
86
        $mappings = static::getMappings();
87
88
        return
89
            array_key_exists(static::SCHEMA_RELATIONSHIPS, $mappings) === true &&
90
            array_key_exists($jsonName, $mappings[static::SCHEMA_RELATIONSHIPS]) === true;
91
    }
92
93
    /**
94
     * @inheritdoc