Code Duplication    Length = 10-10 lines in 2 locations

src/Oro/Bundle/EntityConfigBundle/Config/ConfigManager.php 2 locations

@@ 183-192 (lines=10) @@
180
     *
181
     * @return int|null
182
     */
183
    public function getConfigModelId($className, $fieldName = null)
184
    {
185
        $item = $fieldName
186
            ? $this->findField($className, $fieldName)
187
            : $this->findEntity($className);
188
189
        return null !== $item
190
            ? $item['i']
191
            : null;
192
    }
193
194
    /**
195
     * @param string      $className
@@ 200-209 (lines=10) @@
197
     *
198
     * @return bool|null
199
     */
200
    public function isHiddenModel($className, $fieldName = null)
201
    {
202
        $item = $fieldName
203
            ? $this->findField($className, $fieldName)
204
            : $this->findEntity($className);
205
206
        return null !== $item
207
            ? $item['h']
208
            : null;
209
    }
210
211
    /**
212
     * @param string      $className