src/Reader.php
protected function getInstalledPackages(string $location) : array
    {
        if(isset($this->installedPackages[$location])){
            return $this->installedPackages[$location];
        }

        $installedFile = $location . 'installed.json';
        if(!file_exists($installedFile)){
            return [];
        }

        return $this->installedPackages[$location] = $this->loadJsonFile($installedFile);
    }
protected function getInstalledPackages(string $location) : array
    {
        if(isset($this->installedPackages[$location])){
            return $this->installedPackages[$location];
        }

        $installedFile = $location . 'installed.json';
        if(!file_exists($installedFile)){
            return [];
        }

        return $this->installedPackages[$location] = $this->loadJsonFile($installedFile);
    }
protected function getInstalledPackages ( string $ location ) : array { if ( isset ( $ this -> installedPackages [ $ location ] ) ) { return $ this -> installedPackages [ $ location ] ; } $ installedFile = $ location . 'installed.json' ; if ( ! file_exists ( $ installedFile ) ) { return [ ] ; } return $ this -> installedPackages [ $ location ] = $ this -> loadJsonFile ( $ installedFile ) ; }
Returns the "installed" packages found at the given
location

@param string $location

@return array
Returns the installed packages found at the given location