@@ -166,9 +166,9 @@ discard block |
||
166 | 166 | |
167 | 167 | return $this->render( |
168 | 168 | 'backend/support/searchedCaches.html.twig', [ |
169 | - 'supportCachesForm' => $formSearch->createView(), |
|
170 | - 'foundCaches' => $fetchedCaches |
|
171 | - ] |
|
169 | + 'supportCachesForm' => $formSearch->createView(), |
|
170 | + 'foundCaches' => $fetchedCaches |
|
171 | + ] |
|
172 | 172 | ); |
173 | 173 | } |
174 | 174 | |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | |
188 | 188 | return $this->render( |
189 | 189 | 'backend/support/reportedCaches.html.twig', [ |
190 | - 'supportCachesForm' => $formSearch->createView(), |
|
191 | - 'reportedCaches_by_id' => $fetchedReports |
|
192 | - ] |
|
190 | + 'supportCachesForm' => $formSearch->createView(), |
|
191 | + 'reportedCaches_by_id' => $fetchedReports |
|
192 | + ] |
|
193 | 193 | ); |
194 | 194 | } |
195 | 195 | |
@@ -207,9 +207,9 @@ discard block |
||
207 | 207 | |
208 | 208 | return $this->render( |
209 | 209 | 'backend/support/bonusCaches.html.twig', [ |
210 | - 'supportCachesForm' => $formSearch->createView(), |
|
211 | - 'bonusCaches_by_id' => $fetchedBonuscaches |
|
212 | - ] |
|
210 | + 'supportCachesForm' => $formSearch->createView(), |
|
211 | + 'bonusCaches_by_id' => $fetchedBonuscaches |
|
212 | + ] |
|
213 | 213 | ); |
214 | 214 | } |
215 | 215 | |
@@ -250,10 +250,10 @@ discard block |
||
250 | 250 | |
251 | 251 | return $this->render( |
252 | 252 | 'backend/support/databaseQueries.html.twig', [ |
253 | - 'supportCachesForm' => $formSearch->createView(), |
|
254 | - 'SQLFlexForm' => $form->createView(), |
|
255 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
256 | - ] |
|
253 | + 'supportCachesForm' => $formSearch->createView(), |
|
254 | + 'SQLFlexForm' => $form->createView(), |
|
255 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
256 | + ] |
|
257 | 257 | ); |
258 | 258 | } |
259 | 259 | |
@@ -381,16 +381,16 @@ discard block |
||
381 | 381 | |
382 | 382 | return $this->render( |
383 | 383 | 'backend/support/occ.html.twig', [ |
384 | - 'supportCachesForm' => $formSearch->createView(), |
|
385 | - 'supportCommentFormUser' => $formCommentUser->createView(), |
|
386 | - 'supportCommentFormCache' => $formCommentCache->createView(), |
|
387 | - 'occ_cache_data' => $fetchedCacheData, |
|
388 | - 'occ_cache_comments' => $fetchedCacheComments, |
|
389 | - 'occ_cache_infos' => $fetchedCacheInfos, |
|
390 | - 'occ_user_data' => $fetchedUserData, |
|
391 | - 'occ_user_comments' => $fetchedUserComments, |
|
392 | - 'occ_user_relations' => $fetchedUserRelations |
|
393 | - ] |
|
384 | + 'supportCachesForm' => $formSearch->createView(), |
|
385 | + 'supportCommentFormUser' => $formCommentUser->createView(), |
|
386 | + 'supportCommentFormCache' => $formCommentCache->createView(), |
|
387 | + 'occ_cache_data' => $fetchedCacheData, |
|
388 | + 'occ_cache_comments' => $fetchedCacheComments, |
|
389 | + 'occ_cache_infos' => $fetchedCacheInfos, |
|
390 | + 'occ_user_data' => $fetchedUserData, |
|
391 | + 'occ_user_comments' => $fetchedUserComments, |
|
392 | + 'occ_user_relations' => $fetchedUserRelations |
|
393 | + ] |
|
394 | 394 | ); |
395 | 395 | } |
396 | 396 | |
@@ -514,10 +514,10 @@ discard block |
||
514 | 514 | |
515 | 515 | return $this->render( |
516 | 516 | 'backend/support/userDetails.html.twig', [ |
517 | - 'supportCachesForm' => $formSearch->createView(), |
|
518 | - 'supportUserAccountActions' => $formActions->createView(), |
|
519 | - 'user_account_details' => $fetchedUserDetails |
|
520 | - ] |
|
517 | + 'supportCachesForm' => $formSearch->createView(), |
|
518 | + 'supportUserAccountActions' => $formActions->createView(), |
|
519 | + 'user_account_details' => $fetchedUserDetails |
|
520 | + ] |
|
521 | 521 | ); |
522 | 522 | } |
523 | 523 | |
@@ -608,9 +608,9 @@ discard block |
||
608 | 608 | |
609 | 609 | return $this->render( |
610 | 610 | 'backend/support/databaseQueries.html.twig', [ |
611 | - 'supportCachesForm' => $formSearch->createView(), |
|
612 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
613 | - ] |
|
611 | + 'supportCachesForm' => $formSearch->createView(), |
|
612 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
613 | + ] |
|
614 | 614 | ); |
615 | 615 | } |
616 | 616 | |
@@ -634,9 +634,9 @@ discard block |
||
634 | 634 | |
635 | 635 | return $this->render( |
636 | 636 | 'backend/support/databaseQueries.html.twig', [ |
637 | - 'supportCachesForm' => $formSearch->createView(), |
|
638 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
639 | - ] |
|
637 | + 'supportCachesForm' => $formSearch->createView(), |
|
638 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
639 | + ] |
|
640 | 640 | ); |
641 | 641 | } |
642 | 642 | |
@@ -662,9 +662,9 @@ discard block |
||
662 | 662 | |
663 | 663 | return $this->render( |
664 | 664 | 'backend/support/databaseQueries.html.twig', [ |
665 | - 'supportCachesForm' => $formSearch->createView(), |
|
666 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
667 | - ] |
|
665 | + 'supportCachesForm' => $formSearch->createView(), |
|
666 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
667 | + ] |
|
668 | 668 | ); |
669 | 669 | } |
670 | 670 | |
@@ -680,9 +680,9 @@ discard block |
||
680 | 680 | |
681 | 681 | return $this->render( |
682 | 682 | 'backend/support/databaseQueries.html.twig', [ |
683 | - 'supportCachesForm' => $formSearch->createView(), |
|
684 | - 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
685 | - ] |
|
683 | + 'supportCachesForm' => $formSearch->createView(), |
|
684 | + 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
685 | + ] |
|
686 | 686 | ); |
687 | 687 | } |
688 | 688 |
@@ -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']; |
@@ -19,21 +19,21 @@ |
||
19 | 19 | $builder |
20 | 20 | ->add( |
21 | 21 | 'button_account_inactive', SubmitType::class, [ |
22 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
23 | - 'label' => false |
|
24 | - ] |
|
22 | + 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
23 | + 'label' => false |
|
24 | + ] |
|
25 | 25 | ) |
26 | 26 | ->add( |
27 | 27 | 'button_GDPR_deletion', SubmitType::class, [ |
28 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
29 | - 'label' => false |
|
30 | - ] |
|
28 | + 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
29 | + 'label' => false |
|
30 | + ] |
|
31 | 31 | ) |
32 | 32 | ->add( |
33 | 33 | 'button_mark_email_invalid', SubmitType::class, [ |
34 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
35 | - 'label' => false |
|
36 | - ] |
|
34 | + 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
35 | + 'label' => false |
|
36 | + ] |
|
37 | 37 | ) |
38 | 38 | ->add( |
39 | 39 | 'check_Sure', CheckboxType::class, [ |