public static function ratelimit_reset( $response, $repo ) {
		if ( isset( $response['headers']['x-ratelimit-reset'] ) ) {
			$reset                       = (int) $response['headers']['x-ratelimit-reset'];
			$wait                        = date( 'i', $reset - time() );
			static::$error_code[ $repo ] = array_merge(
				static::$error_code[ $repo ],
				[
					'git'  => 'github',
					'wait' => $wait,
				]
			);
		}
	}
public static function ratelimit_reset( $response, $repo ) {
		if ( isset( $response['headers']['x-ratelimit-reset'] ) ) {
			$reset                       = (int) $response['headers']['x-ratelimit-reset'];
			$wait                        = date( 'i', $reset - time() );
			static::$error_code[ $repo ] = array_merge(
				static::$error_code[ $repo ],
				[
					'git'  => 'github',
					'wait' => $wait,
				]
			);
		}
	}
public static function ratelimit_reset ( $ response , $ repo ) { if ( isset ( $ response [ 'headers' ] [ 'x-ratelimit-reset' ] ) ) { $ reset = ( int ) $ response [ 'headers' ] [ 'x-ratelimit-reset' ] ; $ wait = date ( 'i' , $ reset - time ( ) ) ; static :: $ error_code [ $ repo ] = array_merge ( static :: $ error_code [ $ repo ] , [ 'git' => 'github' , 'wait' => $ wait , ] ) ; } }
Calculate and store time until rate limit reset.

@param array  $response HTTP headers.
@param string $repo Repo name.
Calculate and store time until rate limit reset .