mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various code cleanup.
This commit is contained in:
@@ -74,6 +74,7 @@ class CacheProperties
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function has(): bool
|
||||
{
|
||||
@@ -86,14 +87,13 @@ class CacheProperties
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws JsonException
|
||||
*/
|
||||
private function hash(): void
|
||||
{
|
||||
$content = '';
|
||||
foreach ($this->properties as $property) {
|
||||
try {
|
||||
$content .= json_encode($property, JSON_THROW_ON_ERROR, 512);
|
||||
$content .= json_encode($property, JSON_THROW_ON_ERROR);
|
||||
} catch (JsonException $e) {
|
||||
// @ignoreException
|
||||
$content .= hash('sha256', (string)time());
|
||||
|
Reference in New Issue
Block a user