public function getImportsWithDependencies (array $imports)
    {
        $toLoad = [];

        foreach ($imports as $import)
        {
            $dependencies = $this->map[$import] ?? null;

            if (null !== $dependencies)
            {
                foreach ($dependencies as $dependency)
                {
                    $toLoad[$dependency] = true;
                }
            }
            else
            {
                $toLoad[$import] = true;
            }
        }

        return \array_keys($toLoad);
    }
public function getImportsWithDependencies (array $imports)
    {
        $toLoad = [];

        foreach ($imports as $import)
        {
            $dependencies = $this->map[$import] ?? null;

            if (null !== $dependencies)
            {
                foreach ($dependencies as $dependency)
                {
                    $toLoad[$dependency] = true;
                }
            }
            else
            {
                $toLoad[$import] = true;
            }
        }

        return \array_keys($toLoad);
    }
public function getImportsWithDependencies ( array $ imports ) { $ toLoad = [ ] ; foreach ( $ imports as $ import ) { $ dependencies = $ this -> map [ $ import ] ?? null ; if ( null !== $ dependencies ) { foreach ( $ dependencies as $ dependency ) { $ toLoad [ $ dependency ] = true ; } } else { $ toLoad [ $ import ] = true ; } } return \ array_keys ( $ toLoad ) ; }
Returns the imports with all dependencies

@param array $imports
@return array
Returns the imports with all dependencies