@@ -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 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | $databaseArray |
| 128 | 128 | ); |
| 129 | 129 | |
| 130 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
| 130 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
| 131 | 131 | |
| 132 | 132 | return $entity; |
| 133 | 133 | } |
@@ -205,8 +205,8 @@ discard block |
||
| 205 | 205 | public function getEntityFromDatabaseArray(array $data): GeoCachesAttributesEntity |
| 206 | 206 | { |
| 207 | 207 | $entity = new GeoCachesAttributesEntity(); |
| 208 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 209 | - $entity->attribId = (int) $data['attrib_id']; |
|
| 208 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 209 | + $entity->attribId = (int)$data['attrib_id']; |
|
| 210 | 210 | |
| 211 | 211 | return $entity; |
| 212 | 212 | } |