Update some code style

This commit is contained in:
James Cole
2020-07-31 15:12:26 +02:00
parent c3d8d70b34
commit e46958c23e
11 changed files with 51 additions and 117 deletions

View File

@@ -135,7 +135,8 @@ class Telemetry
->where('key', $key)
->where('value', $jsonEncoded)
->count();
} catch (QueryException|Exception $e) {
} catch (QueryException $e) {
Log::info(sprintf('Could not execute hasEntry() but this is OK: %s', $e->getMessage()));
$count = 0;
}
@@ -188,8 +189,8 @@ class Telemetry
'value' => $value,
]
);
} catch (QueryException|Exception $e) {
// ignore.
} catch (QueryException $e) {
Log::info(sprintf('Could not execute storeEntry() but this is OK: %s', $e->getMessage()));
}
}
}