Code Duplication    Length = 6-7 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/DependencyInjection/Configuration/ConfigResolver.php 2 locations

@@ 144-150 (lines=7) @@
141
        // Relative scope, siteaccess group wise
142
        $groupScopeHasParam = false;
143
        if (isset($this->groupsBySiteAccess[$scope])) {
144
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
145
                $groupScopeParamName = "$namespace.$groupName.$paramName";
146
                if ($this->container->hasParameter($groupScopeParamName)) {
147
                    $groupScopeHasParam = true;
148
                    break;
149
                }
150
            }
151
        }
152
153
        return
@@ 200-205 (lines=6) @@
197
198
        // Relative scope, siteaccess group wise
199
        if (isset($this->groupsBySiteAccess[$scope])) {
200
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
201
                $relativeScopeParamName = "$namespace.$groupName.$paramName";
202
                if ($this->container->hasParameter($relativeScopeParamName)) {
203
                    return $this->container->getParameter($relativeScopeParamName);
204
                }
205
            }
206
        }
207
208
        // Default scope