MCPcopy Create free account
hub / github.com/Rello/analytics / queryChangesServer

Method queryChangesServer

lib/WhatsNew/WhatsNewCheck.php:106–118  ·  view source on GitHub ↗

* @throws \Exception */

(string $uri, WhatsNewResult $entry)

Source from the content-addressed store, hash-verified

104 * @throws \Exception
105 */
106 protected function queryChangesServer(string $uri, WhatsNewResult $entry): IResponse
107 {
108 $headers = [];
109 if ($entry->getEtag() !== '') {
110 $headers['If-None-Match'] = [$entry->getEtag()];
111 }
112
113 $entry->setLastCheck(time());
114 $client = $this->clientService->newClient();
115 return $client->get($uri, [
116 'headers' => $headers,
117 ]);
118 }
119
120 protected function evaluateResponse(IResponse $response): int
121 {

Callers 1

checkMethod · 0.95

Calls 2

newClientMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected