@@ -137,7 +137,7 @@ |
||
137 | 137 | $records[] = $this->getEntityFromDatabaseArray($item); |
138 | 138 | } |
139 | 139 | |
140 | - return array_map(static function ($role) { |
|
140 | + return array_map(static function($role) { |
|
141 | 141 | return $role->role; |
142 | 142 | }, $records); |
143 | 143 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | // https://symfonycasts.com/screencast/symfony6-upgrade/custom-authenticator |
55 | 55 | return new Passport( |
56 | - new UserBadge($userName, function ($userIdentifier) { |
|
56 | + new UserBadge($userName, function($userIdentifier) { |
|
57 | 57 | // optionally pass a callback to load the User manually |
58 | 58 | $user = $this->userRepository->fetchOneBy(['username' => $userIdentifier]); |
59 | 59 | if (!$user) { |
@@ -323,7 +323,7 @@ |
||
323 | 323 | $entity->logType = $this->logTypesRepository->fetchOneBy(['id' => $entity->type]); |
324 | 324 | $entity->user = $this->userRepository->fetchOneById($entity->userId); |
325 | 325 | $entity->pictures = $this->picturesRepository->fetchBy(['object_id' => $entity->id, 'object_type' => 1]); |
326 | - $entity->ratingCacheLog = $this->cacheRatingRepository->getRatingUserCache(['cache_id' => $entity->cacheId, 'user_id' => $entity->userId,]); |
|
326 | + $entity->ratingCacheLog = $this->cacheRatingRepository->getRatingUserCache(['cache_id' => $entity->cacheId, 'user_id' => $entity->userId, ]); |
|
327 | 327 | |
328 | 328 | return $entity; |
329 | 329 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | // REQUEST-Variablen durchlaufen und an target anhaengen |
48 | 48 | $allowed = ['cacheid', 'userid', 'logid', 'desclang', 'descid']; |
49 | 49 | |
50 | -foreach($_REQUEST as $varname => $varvalue) { |
|
50 | +foreach ($_REQUEST as $varname => $varvalue) { |
|
51 | 51 | if (in_array($varname, $allowed)) { |
52 | 52 | $target .= $varname . '=' . htmlspecialchars($varvalue) . '&'; |
53 | 53 | } |