Various PSR12 code cleanup

This commit is contained in:
James Cole
2022-12-29 19:42:26 +01:00
parent dbf3e76ecc
commit 6cfdc58cb1
415 changed files with 7462 additions and 6874 deletions

View File

@@ -1,4 +1,5 @@
<?php
/**
* CacheProperties.php
* Copyright (c) 2019 james@firefly-iii.org
@@ -49,7 +50,7 @@ class CacheProperties
}
/**
* @param mixed $property
* @param mixed $property
*/
public function addProperty($property): void
{
@@ -95,14 +96,14 @@ class CacheProperties
$content .= json_encode($property, JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
// @ignoreException
$content .= hash('sha256', (string) time());
$content .= hash('sha256', (string)time());
}
}
$this->hash = substr(hash('sha256', $content), 0, 16);
}
/**
* @param mixed $data
* @param mixed $data
*/
public function store($data): void
{