@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']); |
| 236 | 236 | |
| 237 | 237 | $countFetched = count($fetchedInformation); |
| 238 | - for ($i = 0; $i < $countFetched; $i ++) { |
|
| 238 | + for ($i = 0; $i < $countFetched; $i++) { |
|
| 239 | 239 | if (array_key_exists('password', $fetchedInformation[$i])) { |
| 240 | 240 | $fetchedInformation[$i]['password'] = '-'; |
| 241 | 241 | } |
@@ -411,18 +411,18 @@ discard block |
||
| 411 | 411 | $inputData = $form->getData(); |
| 412 | 412 | |
| 413 | 413 | if ($inputData['hidden_sender'] == 'textfield_cache_comment') { |
| 414 | - $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]); |
|
| 414 | + $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]); |
|
| 415 | 415 | $entity->comment = $inputData['content_comment_field']; |
| 416 | 416 | $this->supportListingCommentsRepository->update($entity); |
| 417 | 417 | } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') { |
| 418 | - $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID1']]); |
|
| 418 | + $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID1']]); |
|
| 419 | 419 | $entity->comment = $inputData['content_comment_field']; |
| 420 | 420 | $this->supportUserCommentsRepository->update($entity); |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | return $this->redirectToRoute('backend_support_occ', [ |
| 424 | - 'userID' => (string) $inputData['hidden_ID1'], |
|
| 425 | - 'wpID' => (string) $inputData['hidden_ID2'] |
|
| 424 | + 'userID' => (string)$inputData['hidden_ID1'], |
|
| 425 | + 'wpID' => (string)$inputData['hidden_ID2'] |
|
| 426 | 426 | ]); |
| 427 | 427 | } |
| 428 | 428 | |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | if ($form->isSubmitted() && $form->isValid()) { |
| 446 | 446 | $inputData = $form->getData(); |
| 447 | 447 | |
| 448 | - $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID1']]); |
|
| 448 | + $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID1']]); |
|
| 449 | 449 | $entity->comment = $inputData['content_comment_field']; |
| 450 | 450 | |
| 451 | 451 | $this->cacheReportsRepository->update($entity); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $databaseArray |
| 145 | 145 | ); |
| 146 | 146 | |
| 147 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 147 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 148 | 148 | |
| 149 | 149 | return $entity; |
| 150 | 150 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | ['user_id' => $entity->id] |
| 173 | 173 | ); |
| 174 | 174 | |
| 175 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 175 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 176 | 176 | |
| 177 | 177 | return $entity; |
| 178 | 178 | } |
@@ -249,16 +249,16 @@ discard block |
||
| 249 | 249 | public function getEntityFromDatabaseArray(array $data): UserEntity |
| 250 | 250 | { |
| 251 | 251 | $entity = new UserEntity(); |
| 252 | - $entity->id = (int) $data['user_id']; |
|
| 253 | - $entity->dateCreated = (string) $data['date_created']; |
|
| 254 | - $entity->lastModified = (string) $data['last_modified']; |
|
| 252 | + $entity->id = (int)$data['user_id']; |
|
| 253 | + $entity->dateCreated = (string)$data['date_created']; |
|
| 254 | + $entity->lastModified = (string)$data['last_modified']; |
|
| 255 | 255 | $entity->username = $data['username']; |
| 256 | 256 | $entity->password = $data['password']; |
| 257 | 257 | $entity->email = $data['email']; |
| 258 | - $entity->emailProblems = (bool) $data['email_problems']; |
|
| 259 | - $entity->latitude = (double) $data['latitude']; |
|
| 260 | - $entity->longitude = (double) $data['longitude']; |
|
| 261 | - $entity->isActive = (bool) $data['is_active_flag']; |
|
| 258 | + $entity->emailProblems = (bool)$data['email_problems']; |
|
| 259 | + $entity->latitude = (double)$data['latitude']; |
|
| 260 | + $entity->longitude = (double)$data['longitude']; |
|
| 261 | + $entity->isActive = (bool)$data['is_active_flag']; |
|
| 262 | 262 | $entity->firstname = $data['first_name']; |
| 263 | 263 | $entity->lastname = $data['last_name']; |
| 264 | 264 | $entity->country = $data['country']; |