Code Duplication    Length = 6-7 lines in 2 locations

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

@@ 132-138 (lines=7) @@
129
        // Relative scope, siteaccess group wise
130
        $groupScopeHasParam = false;
131
        if (isset($this->groupsBySiteAccess[$scope])) {
132
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
133
                $groupScopeParamName = "$namespace.$groupName.$paramName";
134
                if ($this->container->hasParameter($groupScopeParamName)) {
135
                    $groupScopeHasParam = true;
136
                    break;
137
                }
138
            }
139
        }
140
141
        return
@@ 186-191 (lines=6) @@
183
184
        // Relative scope, siteaccess group wise
185
        if (isset($this->groupsBySiteAccess[$scope])) {
186
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
187
                $relativeScopeParamName = "$namespace.$groupName.$paramName";
188
                if ($this->container->hasParameter($relativeScopeParamName)) {
189
                    return $this->container->getParameter($relativeScopeParamName);
190
                }
191
            }
192
        }
193
194
        // Default scope