lib/Github/Api/Apps.php
public function listRepositories($userId = null)
    {
        $parameters = [];
        if ($userId) {
            $parameters['user_id'] = $userId;
        }

        return $this->get('/installation/repositories', $parameters);
    }
public function listRepositories($userId = null)
    {
        $parameters = [];
        if ($userId) {
            $parameters['user_id'] = $userId;
        }

        return $this->get('/installation/repositories', $parameters);
    }
public function listRepositories ( $ userId = null ) { $ parameters = [ ] ; if ( $ userId ) { $ parameters [ 'user_id' ] = $ userId ; } return $ this -> get ( '/installation/repositories' , $ parameters ) ; }
List repositories that are accessible to the authenticated installation.

@link https://developer.github.com/v3/apps/installations/#list-repositories

@param int $userId

@return array
List repositories that are accessible to the authenticated installation .