lib/GitHub/Receiver/Gists.php
public function listGists(string $username = null, string $since = '1970-01-01'): array
    {
        $url = '/gists';
        if (null !== $username) {
            $url = '/users/:username/gists';
        }

        return $this->getApi()->request($this->getApi()->sprintf(':url?:arg', $url, $username,
            http_build_query(['since' => (new DateTime($since))->format(DateTime::ATOM)])));
    }
public function listGists(string $username = null, string $since = '1970-01-01'): array
    {
        $url = '/gists';
        if (null !== $username) {
            $url = '/users/:username/gists';
        }

        return $this->getApi()->request($this->getApi()->sprintf(':url?:arg', $url, $username,
            http_build_query(['since' => (new DateTime($since))->format(DateTime::ATOM)])));
    }
public function listGists ( string $ username = null , string $ since = '1970-01-01' ) : array { $ url = '/gists' ; if ( null !== $ username ) { $ url = '/users/:username/gists' ; } return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( ':url?:arg' , $ url , $ username , http_build_query ( [ 'since' => ( new DateTime ( $ since ) ) -> format ( DateTime :: ATOM ) ] ) ) ) ; }
List a user's gists

@link https://developer.github.com/v3/gists/#list-a-users-gists

@param string $username
@param string $since

@return array
List a user s gists