src/PackageSelection/PackageSelection.php
private function getRequired(PackageInterface $package, bool $isRoot)
    {
        $required = [];

        if ($this->requireDependencies) {
            $required = $package->getRequires();
        }
        if (($isRoot || !$this->requireDependencyFilter) && $this->requireDevDependencies) {
            $required = array_merge($required, $package->getDevRequires());
        }

        return $required;
    }
private function getRequired(PackageInterface $package, bool $isRoot)
    {
        $required = [];

        if ($this->requireDependencies) {
            $required = $package->getRequires();
        }
        if (($isRoot || !$this->requireDependencyFilter) && $this->requireDevDependencies) {
            $required = array_merge($required, $package->getDevRequires());
        }

        return $required;
    }
private function getRequired ( PackageInterface $ package , bool $ isRoot ) { $ required = [ ] ; if ( $ this -> requireDependencies ) { $ required = $ package -> getRequires ( ) ; } if ( ( $ isRoot || ! $ this -> requireDependencyFilter ) && $ this -> requireDevDependencies ) { $ required = array_merge ( $ required , $ package -> getDevRequires ( ) ) ; } return $ required ; }
Gets the required Links if needed.

@param PackageInterface $package A package
@param bool $isRoot
If the packages are linked in root or as dependency

@return Link[]
Gets the required Links if needed .