public function getInstalledPackage($slug)
    {
        if (isset($this->installed['plugins'][$slug])) {
            return $this->installed['plugins'][$slug];
        }

        if (isset($this->installed['themes'][$slug])) {
            return $this->installed['themes'][$slug];
        }

        return null;
    }
public function getInstalledPackage($slug)
    {
        if (isset($this->installed['plugins'][$slug])) {
            return $this->installed['plugins'][$slug];
        }

        if (isset($this->installed['themes'][$slug])) {
            return $this->installed['themes'][$slug];
        }

        return null;
    }
public function getInstalledPackage ( $ slug ) { if ( isset ( $ this -> installed [ 'plugins' ] [ $ slug ] ) ) { return $ this -> installed [ 'plugins' ] [ $ slug ] ; } if ( isset ( $ this -> installed [ 'themes' ] [ $ slug ] ) ) { return $ this -> installed [ 'themes' ] [ $ slug ] ; } return null ; }
Return the instance of a specific Package

@param  string $slug The slug of the Package
@return Local\Package The instance of the Package
Return the instance of a specific Package