lib/GitHub/Receiver/Activity/Starring.php
public function listRepositories(string $sort = AbstractApi::SORT_CREATED,
                                     string $direction = AbstractApi::DIRECTION_DESC, string $username = null): array
    {
        if (null !== $username) {
            return $this->getApi()->request($this->getApi()->sprintf('/users/:username/starred?:args', $username,
                http_build_query(['sort' => $sort, 'direction' => $direction])));
        }

        return $this->getApi()->request($this->getApi()->sprintf('/user/starred?:args',
            http_build_query(['sort' => $sort, 'direction' => $direction])));
    }
public function listRepositories(string $sort = AbstractApi::SORT_CREATED,
                                     string $direction = AbstractApi::DIRECTION_DESC, string $username = null): array
    {
        if (null !== $username) {
            return $this->getApi()->request($this->getApi()->sprintf('/users/:username/starred?:args', $username,
                http_build_query(['sort' => $sort, 'direction' => $direction])));
        }

        return $this->getApi()->request($this->getApi()->sprintf('/user/starred?:args',
            http_build_query(['sort' => $sort, 'direction' => $direction])));
    }
public function listRepositories ( string $ sort = AbstractApi :: SORT_CREATED , string $ direction = AbstractApi :: DIRECTION_DESC , string $ username = null ) : array { if ( null !== $ username ) { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/users/:username/starred?:args' , $ username , http_build_query ( [ 'sort' => $ sort , 'direction' => $ direction ] ) ) ) ; } return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/user/starred?:args' , http_build_query ( [ 'sort' => $ sort , 'direction' => $ direction ] ) ) ) ; }
List repositories being starred

@link https://developer.github.com/v3/activity/starring/#list-repositories-being-starred

@param string $sort
@param string $direction
@param string $username

@return array
List repositories being starred