Code Duplication    Length = 8-11 lines in 2 locations

src/Chamilo/CourseBundle/Manager/SettingsManager.php 1 location

@@ 226-233 (lines=8) @@
223
     *
224
     * @return array
225
     */
226
    private function getParameters($namespace)
227
    {
228
        $repo = $this->manager->getRepository('ChamiloCourseBundle:CCourseSetting');
229
        $parameters = [];
230
        foreach ($repo->findBy(array('category' => $namespace)) as $parameter) {
231
            $parameters[$parameter->getName()] = $parameter->getValue();
232
        }
233
    }
234
}
235

src/Chamilo/SettingsBundle/Manager/SettingsManager.php 1 location

@@ 861-871 (lines=11) @@
858
     *
859
     * @return array
860
     */
861
    private function getParameters($namespace)
862
    {
863
        //$repo = $this->parameterRepository;
864
        $repo = $this->manager->getRepository('ChamiloCoreBundle:SettingsCurrent');
865
        $parameters = [];
866
        foreach ($repo->findBy(array('category' => $namespace)) as $parameter) {
867
            $parameters[$parameter->getName()] = $parameter->getValue();
868
        }
869
870
        return $parameters;
871
    }
872
873
    public function getParametersFromKeyword($namespace, $keyword = '')
874
    {