private function getDependencies(array $results)
    {
        $dependencies = [];
        $doubles = [];

        foreach ($results as $name => $result) {
            $type = $this->recursive ? Dependency::PROHIBITS : Dependency::DEPENDS;
            $dependency = Dependency::create($name, $type, $result);
            $unique = (string) $dependency->getLink();
            if (isset($doubles[$unique])) {
                continue;
            }
            $doubles[$unique] = true;
            $dependencies[] = $dependency;
        }

        return $dependencies;
    }
private function getDependencies(array $results)
    {
        $dependencies = [];
        $doubles = [];

        foreach ($results as $name => $result) {
            $type = $this->recursive ? Dependency::PROHIBITS : Dependency::DEPENDS;
            $dependency = Dependency::create($name, $type, $result);
            $unique = (string) $dependency->getLink();
            if (isset($doubles[$unique])) {
                continue;
            }
            $doubles[$unique] = true;
            $dependencies[] = $dependency;
        }

        return $dependencies;
    }
private function getDependencies ( array $ results ) { $ dependencies = [ ] ; $ doubles = [ ] ; foreach ( $ results as $ name => $ result ) { $ type = $ this -> recursive ? Dependency :: PROHIBITS : Dependency :: DEPENDS ; $ dependency = Dependency :: create ( $ name , $ type , $ result ) ; $ unique = ( string ) $ dependency -> getLink ( ) ; if ( isset ( $ doubles [ $ unique ] ) ) { continue ; } $ doubles [ $ unique ] = true ; $ dependencies [ ] = $ dependency ; } return $ dependencies ; }
Assembles and prints a bottom-up table of the dependencies.

@param array $results

@return Dependency[]
Assembles and prints a bottom - up table of the dependencies .