Skip to content
Snippets Groups Projects
Commit a87c99d8 authored by Tibo's avatar Tibo
Browse files

code clean

parent 6b65a0ab
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,8 @@ class ClientVersion extends \App\AbstractSensor
public function manifest()
{
$options = ['timeout' => 5.0];
$options = [
'timeout' => 5.0];
$proxy = config("app.proxy", null);
if ($proxy != null) {
......@@ -24,12 +25,7 @@ class ClientVersion extends \App\AbstractSensor
}
$client = new Client($options);
try {
$json = $client->get(self::MANIFEST)->getBody();
} catch (\Exception $ex) {
return "";
}
$json = $client->get(self::MANIFEST)->getBody();
return json_decode($json)[0];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment