feat TelemetryService
: don't define variables that are unused
This commit is contained in:
parent
c7f006c5a2
commit
6ce19ccac9
1 changed files with 1 additions and 4 deletions
|
@ -19,7 +19,6 @@ class BlueprintTelemetryService
|
||||||
if ($this->settings->get('blueprint::telemetry') == "false") { return; };
|
if ($this->settings->get('blueprint::telemetry') == "false") { return; };
|
||||||
|
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
|
|
||||||
curl_setopt_array($curl, array(
|
curl_setopt_array($curl, array(
|
||||||
CURLOPT_URL => $this->PlaceholderService->api_url().'/send/'.$this->settings->get('blueprint::panel:id')."/".$event."/",
|
CURLOPT_URL => $this->PlaceholderService->api_url().'/send/'.$this->settings->get('blueprint::panel:id')."/".$event."/",
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
|
@ -31,10 +30,8 @@ class BlueprintTelemetryService
|
||||||
CURLOPT_CUSTOMREQUEST => 'GET',
|
CURLOPT_CUSTOMREQUEST => 'GET',
|
||||||
CURLOPT_CONNECTTIMEOUT => 2,
|
CURLOPT_CONNECTTIMEOUT => 2,
|
||||||
));
|
));
|
||||||
|
|
||||||
$response = curl_exec($curl);
|
|
||||||
|
|
||||||
curl_close($curl);
|
curl_close($curl);
|
||||||
|
|
||||||
$this->ConfigService->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id"));
|
$this->ConfigService->config('TELEMETRY_ID',$this->settings->get("blueprint::panel:id"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue