Code Duplication    Length = 10-10 lines in 2 locations

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

@@ 1427-1436 (lines=10) @@
1424
     *
1425
     * @return bool
1426
     */
1427
    protected function isConfigurableEntity($className)
1428
    {
1429
        $isConfigurable = $this->cache->getConfigurable($className);
1430
        if (null === $isConfigurable) {
1431
            $isConfigurable = (null !== $this->modelManager->findEntityModel($className));
1432
            $this->cache->saveConfigurable($isConfigurable, $className);
1433
        }
1434
1435
        return $isConfigurable;
1436
    }
1437
1438
    /**
1439
     * Checks whether a field is configurable.
@@ 1446-1455 (lines=10) @@
1443
     *
1444
     * @return bool
1445
     */
1446
    protected function isConfigurableField($className, $fieldName)
1447
    {
1448
        $isConfigurable = $this->cache->getConfigurable($className, $fieldName);
1449
        if (null === $isConfigurable) {
1450
            $isConfigurable = (null !== $this->modelManager->findFieldModel($className, $fieldName));
1451
            $this->cache->saveConfigurable($isConfigurable, $className, $fieldName);
1452
        }
1453
1454
        return $isConfigurable;
1455
    }
1456
1457
    /**
1458
     * Checks whether an entity or entity field is custom or system