src/Package.php
public function collectAliases(): array
    {
        $aliases = array_merge(
            $this->prepareAliases('psr-0'),
            $this->prepareAliases('psr-4')
        );
        if ($this->isRoot()) {
            $aliases = array_merge($aliases,
                $this->prepareAliases('psr-0', true),
                $this->prepareAliases('psr-4', true)
            );
        }

        return $aliases;
    }
public function collectAliases(): array
    {
        $aliases = array_merge(
            $this->prepareAliases('psr-0'),
            $this->prepareAliases('psr-4')
        );
        if ($this->isRoot()) {
            $aliases = array_merge($aliases,
                $this->prepareAliases('psr-0', true),
                $this->prepareAliases('psr-4', true)
            );
        }

        return $aliases;
    }
public function collectAliases ( ) : array { $ aliases = array_merge ( $ this -> prepareAliases ( 'psr-0' ) , $ this -> prepareAliases ( 'psr-4' ) ) ; if ( $ this -> isRoot ( ) ) { $ aliases = array_merge ( $ aliases , $ this -> prepareAliases ( 'psr-0' , true ) , $ this -> prepareAliases ( 'psr-4' , true ) ) ; } return $ aliases ; }
Collects package aliases.
@return array collected aliases
Collects package aliases .