Code Duplication    Length = 5-5 lines in 2 locations

src/Composer.php 2 locations

@@ 293-297 (lines=5) @@
290
        $result = array();
291
        foreach ($list as $k=>$v) {
292
            $module = is_array($v)?$k:$v;
293
            if (!in_array($module, $ignoreList)) {
294
                $result[] = $module;
295
                $moduleList = $this->getReqList($this->packagesList[$module]);
296
                $result = array_merge($result, $moduleList);
297
            }
298
        }
299
        return array_values(array_unique($result));
300
    }
@@ 313-317 (lines=5) @@
310
        $return = array();
311
        if (is_array($list)) {
312
            foreach ($list as $module) {
313
                if (!in_array($module, $result)) {
314
                    $getList = $this->getReqList($this->packagesList[$module], $return);
315
                    $return[] = $module;
316
                    $return = array_merge($return, $getList);
317
                }
318
            }
319
        }
320
        return $return;