mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 02:38:50 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
eef26f7ae6
commit
639829f5c5
97 changed files with 305 additions and 185 deletions
|
@ -43,6 +43,7 @@ declare(strict_types=1);
|
|||
namespace App\Services;
|
||||
|
||||
use App\Entity\UserSystem\User;
|
||||
use Locale;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
|
||||
/**
|
||||
|
@ -65,7 +66,7 @@ class UserCacheKeyGenerator
|
|||
*/
|
||||
public function generateKey(?User $user = null): string
|
||||
{
|
||||
$locale = \Locale::getDefault();
|
||||
$locale = Locale::getDefault();
|
||||
|
||||
//If no user was specified, use the currently used one.
|
||||
if (null === $user) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue