@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $databaseArray |
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 151 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 152 | 152 | |
| 153 | 153 | return $entity; |
| 154 | 154 | } |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | ['user_id' => $entity->id] |
| 177 | 177 | ); |
| 178 | 178 | |
| 179 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 179 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 180 | 180 | |
| 181 | 181 | return $entity; |
| 182 | 182 | } |
@@ -255,16 +255,16 @@ discard block |
||
| 255 | 255 | public function getEntityFromDatabaseArray(array $data): UserEntity |
| 256 | 256 | { |
| 257 | 257 | $entity = new UserEntity(); |
| 258 | - $entity->userId = (int) $data['user_id']; |
|
| 259 | - $entity->dateCreated = (string) $data['date_created']; |
|
| 260 | - $entity->lastModified = (string) $data['last_modified']; |
|
| 258 | + $entity->userId = (int)$data['user_id']; |
|
| 259 | + $entity->dateCreated = (string)$data['date_created']; |
|
| 260 | + $entity->lastModified = (string)$data['last_modified']; |
|
| 261 | 261 | $entity->username = $data['username']; |
| 262 | 262 | $entity->password = $data['password']; |
| 263 | 263 | $entity->email = $data['email']; |
| 264 | - $entity->emailProblems = (bool) $data['email_problems']; |
|
| 265 | - $entity->latitude = (double) $data['latitude']; |
|
| 266 | - $entity->longitude = (double) $data['longitude']; |
|
| 267 | - $entity->isActive = (bool) $data['is_active_flag']; |
|
| 264 | + $entity->emailProblems = (bool)$data['email_problems']; |
|
| 265 | + $entity->latitude = (double)$data['latitude']; |
|
| 266 | + $entity->longitude = (double)$data['longitude']; |
|
| 267 | + $entity->isActive = (bool)$data['is_active_flag']; |
|
| 268 | 268 | $entity->firstname = $data['first_name']; |
| 269 | 269 | $entity->lastname = $data['last_name']; |
| 270 | 270 | $entity->country = $data['country']; |
@@ -57,9 +57,9 @@ |
||
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | return $this->render('backend/user/index.html.twig', [ |
| 60 | - 'userSearchForm' => $searchForm->createView(), |
|
| 61 | - 'all_users_by_searchfield' => $fetchedUsers |
|
| 62 | - ] |
|
| 60 | + 'userSearchForm' => $searchForm->createView(), |
|
| 61 | + 'all_users_by_searchfield' => $fetchedUsers |
|
| 62 | + ] |
|
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |