protected function get_local_info( $repo, $file ) {
		$response = false;

		if ( isset( $_POST['ghu_refresh_cache'] ) ) {
			return $response;
		}

		if ( is_dir( $repo->local_path ) &&
			file_exists( $repo->local_path . $file )
		) {
			$response = file_get_contents( $repo->local_path . $file );
		}

		return $response;
	}
protected function get_local_info( $repo, $file ) {
		$response = false;

		if ( isset( $_POST['ghu_refresh_cache'] ) ) {
			return $response;
		}

		if ( is_dir( $repo->local_path ) &&
			file_exists( $repo->local_path . $file )
		) {
			$response = file_get_contents( $repo->local_path . $file );
		}

		return $response;
	}
protected function get_local_info ( $ repo , $ file ) { $ response = false ; if ( isset ( $ _POST [ 'ghu_refresh_cache' ] ) ) { return $ response ; } if ( is_dir ( $ repo -> local_path ) && file_exists ( $ repo -> local_path . $ file ) ) { $ response = file_get_contents ( $ repo -> local_path . $ file ) ; } return $ response ; }
Get local file info if no update available. Save API calls.

@param \stdClass $repo Repo data.
@param string    $file

@return null|string
Get local file info if no update available . Save API calls .