Code Duplication    Length = 8-8 lines in 2 locations

src/TreeHouse/Model/Config/Config.php 2 locations

@@ 96-103 (lines=8) @@
93
     *
94
     * @return boolean
95
     */
96
    public function hasFieldConfigKey($config, $key)
97
    {
98
        if (null === $values = $this->getFieldConfig($config)) {
99
            return false;
100
        }
101
102
        return array_key_exists($key, $values);
103
    }
104
105
    /**
106
     * Checks if a name-value exists for a given field config
@@ 130-137 (lines=8) @@
127
     *
128
     * @return string|null
129
     */
130
    public function getFieldConfigValueByKey($config, $key)
131
    {
132
        if (null === $values = $this->getFieldConfig($config)) {
133
            return null;
134
        }
135
136
        return array_key_exists($key, $values) ? $values[$key] : null;
137
    }
138
139
    /**
140
     * Returns the key for a field config name-value