Code Duplication    Length = 11-13 lines in 2 locations

src/Oro/Bundle/EntityConfigBundle/Config/ConfigManager.php 1 location

@@ 1466-1476 (lines=11) @@
1463
     *
1464
     * @return bool
1465
     */
1466
    protected function isCustom($className, $fieldName = null)
1467
    {
1468
        $result         = false;
1469
        $extendProvider = $this->getProvider('extend');
1470
        if ($extendProvider && $extendProvider->hasConfig($className, $fieldName)) {
1471
            $result = $extendProvider->getConfig($className, $fieldName)
1472
                ->is('owner', ExtendScope::OWNER_CUSTOM);
1473
        }
1474
1475
        return $result;
1476
    }
1477
1478
    /**
1479
     * @return LogicException

src/Oro/Bundle/EntityExtendBundle/Command/UpdateSchemaCommand.php 1 location

@@ 102-114 (lines=13) @@
99
     *
100
     * @return bool
101
     */
102
    protected function isExtendEntity($className, ConfigManager $configManager)
103
    {
104
        $result = false;
105
106
        // check if an entity is marked as extended (both extended and custom entities are marked as extended)
107
        if ($configManager->hasConfig($className)) {
108
            $extendProvider = $configManager->getProvider('extend');
109
110
            $result = $extendProvider->getConfig($className)->is('is_extend');
111
        }
112
113
        return $result;
114
    }
115
}
116