@@ -180,9 +180,9 @@ discard block |
||
180 | 180 | |
181 | 181 | return $this->render( |
182 | 182 | 'backend/support/searchedCaches.html.twig', [ |
183 | - 'supportCachesForm' => $formSearch->createView(), |
|
184 | - 'foundCaches' => $fetchedCaches |
|
185 | - ] |
|
183 | + 'supportCachesForm' => $formSearch->createView(), |
|
184 | + 'foundCaches' => $fetchedCaches |
|
185 | + ] |
|
186 | 186 | ); |
187 | 187 | } |
188 | 188 | |
@@ -201,9 +201,9 @@ discard block |
||
201 | 201 | |
202 | 202 | return $this->render( |
203 | 203 | 'backend/support/reportedCaches.html.twig', [ |
204 | - 'supportCachesForm' => $formSearch->createView(), |
|
205 | - 'reportedCaches_by_id' => $fetchedReports |
|
206 | - ] |
|
204 | + 'supportCachesForm' => $formSearch->createView(), |
|
205 | + 'reportedCaches_by_id' => $fetchedReports |
|
206 | + ] |
|
207 | 207 | ); |
208 | 208 | } |
209 | 209 | |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | |
222 | 222 | return $this->render( |
223 | 223 | 'backend/support/bonusCaches.html.twig', [ |
224 | - 'supportCachesForm' => $formSearch->createView(), |
|
225 | - 'bonusCaches_by_id' => $fetchedBonuscaches |
|
226 | - ] |
|
224 | + 'supportCachesForm' => $formSearch->createView(), |
|
225 | + 'bonusCaches_by_id' => $fetchedBonuscaches |
|
226 | + ] |
|
227 | 227 | ); |
228 | 228 | } |
229 | 229 | |
@@ -264,10 +264,10 @@ discard block |
||
264 | 264 | |
265 | 265 | return $this->render( |
266 | 266 | 'backend/support/databaseQueries.html.twig', [ |
267 | - 'supportCachesForm' => $formSearch->createView(), |
|
268 | - 'SQLFlexForm' => $form->createView(), |
|
269 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
270 | - ] |
|
267 | + 'supportCachesForm' => $formSearch->createView(), |
|
268 | + 'SQLFlexForm' => $form->createView(), |
|
269 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
270 | + ] |
|
271 | 271 | ); |
272 | 272 | } |
273 | 273 | |
@@ -395,16 +395,16 @@ discard block |
||
395 | 395 | |
396 | 396 | return $this->render( |
397 | 397 | 'backend/support/occ.html.twig', [ |
398 | - 'supportCachesForm' => $formSearch->createView(), |
|
399 | - 'supportCommentFormUser' => $formCommentUser->createView(), |
|
400 | - 'supportCommentFormCache' => $formCommentCache->createView(), |
|
401 | - 'occ_cache_data' => $fetchedCacheData, |
|
402 | - 'occ_cache_comments' => $fetchedCacheComments, |
|
403 | - 'occ_cache_infos' => $fetchedCacheInfos, |
|
404 | - 'occ_user_data' => $fetchedUserData, |
|
405 | - 'occ_user_comments' => $fetchedUserComments, |
|
406 | - 'occ_user_relations' => $fetchedUserRelations |
|
407 | - ] |
|
398 | + 'supportCachesForm' => $formSearch->createView(), |
|
399 | + 'supportCommentFormUser' => $formCommentUser->createView(), |
|
400 | + 'supportCommentFormCache' => $formCommentCache->createView(), |
|
401 | + 'occ_cache_data' => $fetchedCacheData, |
|
402 | + 'occ_cache_comments' => $fetchedCacheComments, |
|
403 | + 'occ_cache_infos' => $fetchedCacheInfos, |
|
404 | + 'occ_user_data' => $fetchedUserData, |
|
405 | + 'occ_user_comments' => $fetchedUserComments, |
|
406 | + 'occ_user_relations' => $fetchedUserRelations |
|
407 | + ] |
|
408 | 408 | ); |
409 | 409 | } |
410 | 410 | |
@@ -528,10 +528,10 @@ discard block |
||
528 | 528 | |
529 | 529 | return $this->render( |
530 | 530 | 'backend/support/userDetails.html.twig', [ |
531 | - 'supportCachesForm' => $formSearch->createView(), |
|
532 | - 'supportUserAccountActions' => $formActions->createView(), |
|
533 | - 'user_account_details' => $fetchedUserDetails |
|
534 | - ] |
|
531 | + 'supportCachesForm' => $formSearch->createView(), |
|
532 | + 'supportUserAccountActions' => $formActions->createView(), |
|
533 | + 'user_account_details' => $fetchedUserDetails |
|
534 | + ] |
|
535 | 535 | ); |
536 | 536 | } |
537 | 537 | |
@@ -620,9 +620,9 @@ discard block |
||
620 | 620 | |
621 | 621 | return $this->render( |
622 | 622 | 'backend/support/databaseQueries.html.twig', [ |
623 | - 'supportCachesForm' => $formSearch->createView(), |
|
624 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
625 | - ] |
|
623 | + 'supportCachesForm' => $formSearch->createView(), |
|
624 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
625 | + ] |
|
626 | 626 | ); |
627 | 627 | } |
628 | 628 | |
@@ -646,9 +646,9 @@ discard block |
||
646 | 646 | |
647 | 647 | return $this->render( |
648 | 648 | 'backend/support/databaseQueries.html.twig', [ |
649 | - 'supportCachesForm' => $formSearch->createView(), |
|
650 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
651 | - ] |
|
649 | + 'supportCachesForm' => $formSearch->createView(), |
|
650 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
651 | + ] |
|
652 | 652 | ); |
653 | 653 | } |
654 | 654 | |
@@ -674,9 +674,9 @@ discard block |
||
674 | 674 | |
675 | 675 | return $this->render( |
676 | 676 | 'backend/support/databaseQueries.html.twig', [ |
677 | - 'supportCachesForm' => $formSearch->createView(), |
|
678 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
679 | - ] |
|
677 | + 'supportCachesForm' => $formSearch->createView(), |
|
678 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
679 | + ] |
|
680 | 680 | ); |
681 | 681 | } |
682 | 682 | |
@@ -692,9 +692,9 @@ discard block |
||
692 | 692 | |
693 | 693 | return $this->render( |
694 | 694 | 'backend/support/databaseQueries.html.twig', [ |
695 | - 'supportCachesForm' => $formSearch->createView(), |
|
696 | - 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
697 | - ] |
|
695 | + 'supportCachesForm' => $formSearch->createView(), |
|
696 | + 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
697 | + ] |
|
698 | 698 | ); |
699 | 699 | } |
700 | 700 | |
@@ -799,15 +799,15 @@ discard block |
||
799 | 799 | |
800 | 800 | return $this->render( |
801 | 801 | 'backend/support/occ_gpx_import.html.twig', [ |
802 | - 'supportCachesForm' => $formSearch->createView(), |
|
803 | - 'supportUploadGPXForm' => $formUpload->createView(), |
|
804 | - 'amountProcessedCaches' => $amountProcessedCaches, |
|
805 | - 'amountAssignedCaches' => $amountAssignedCaches, |
|
806 | - 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
807 | - 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
808 | - 'fetchedListingInfos' => $fetchedListingInfos, |
|
809 | - 'differencesDetected' => $differencesDetected |
|
810 | - ] |
|
802 | + 'supportCachesForm' => $formSearch->createView(), |
|
803 | + 'supportUploadGPXForm' => $formUpload->createView(), |
|
804 | + 'amountProcessedCaches' => $amountProcessedCaches, |
|
805 | + 'amountAssignedCaches' => $amountAssignedCaches, |
|
806 | + 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
807 | + 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
808 | + 'fetchedListingInfos' => $fetchedListingInfos, |
|
809 | + 'differencesDetected' => $differencesDetected |
|
810 | + ] |
|
811 | 811 | ); |
812 | 812 | } |
813 | 813 | |
@@ -959,11 +959,11 @@ discard block |
||
959 | 959 | ] as $checkItem) { |
960 | 960 | if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) { |
961 | 961 | $newComment .= $checkItem |
962 | - . ' changed from ' |
|
963 | - . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
964 | - . ' to ' |
|
965 | - . $wpt[$checkItem] |
|
966 | - . PHP_EOL; |
|
962 | + . ' changed from ' |
|
963 | + . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
964 | + . ' to ' |
|
965 | + . $wpt[$checkItem] |
|
966 | + . PHP_EOL; |
|
967 | 967 | } |
968 | 968 | } |
969 | 969 |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']); |
250 | 250 | |
251 | 251 | $countFetched = count($fetchedInformation); |
252 | - for ($i = 0; $i < $countFetched; $i ++) { |
|
252 | + for ($i = 0; $i < $countFetched; $i++) { |
|
253 | 253 | if (array_key_exists('password', $fetchedInformation[$i])) { |
254 | 254 | $fetchedInformation[$i]['password'] = '-'; |
255 | 255 | } |
@@ -425,18 +425,18 @@ discard block |
||
425 | 425 | $inputData = $form->getData(); |
426 | 426 | |
427 | 427 | if ($inputData['hidden_sender'] == 'textfield_cache_comment') { |
428 | - $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]); |
|
428 | + $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]); |
|
429 | 429 | $entity->comment = $inputData['content_comment_field']; |
430 | 430 | $this->supportListingCommentsRepository->update($entity); |
431 | 431 | } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') { |
432 | - $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID1']]); |
|
432 | + $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID1']]); |
|
433 | 433 | $entity->comment = $inputData['content_comment_field']; |
434 | 434 | $this->supportUserCommentsRepository->update($entity); |
435 | 435 | } |
436 | 436 | |
437 | 437 | return $this->redirectToRoute('backend_support_occ', [ |
438 | - 'userID' => (string) $inputData['hidden_ID1'], |
|
439 | - 'wpID' => (string) $inputData['hidden_ID2'] |
|
438 | + 'userID' => (string)$inputData['hidden_ID1'], |
|
439 | + 'wpID' => (string)$inputData['hidden_ID2'] |
|
440 | 440 | ]); |
441 | 441 | } |
442 | 442 | |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | if ($form->isSubmitted() && $form->isValid()) { |
460 | 460 | $inputData = $form->getData(); |
461 | 461 | |
462 | - $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID1']]); |
|
462 | + $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID1']]); |
|
463 | 463 | $entity->comment = $inputData['content_comment_field']; |
464 | 464 | |
465 | 465 | $this->cacheReportsRepository->update($entity); |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | array_push($tempArray, ''); |
846 | 846 | } |
847 | 847 | |
848 | - if (round ($fetchedOCCache->longitude * 10000) != round($fetchedListingInfo->nodeListingCoordinatesLon * 10000)) { |
|
848 | + if (round($fetchedOCCache->longitude * 10000) != round($fetchedListingInfo->nodeListingCoordinatesLon * 10000)) { |
|
849 | 849 | array_push($tempArray, $fetchedOCCache->longitude . ' != ' . $fetchedListingInfo->nodeListingCoordinatesLon); |
850 | 850 | } else { |
851 | 851 | array_push($tempArray, ''); |
@@ -995,7 +995,7 @@ discard block |
||
995 | 995 | $entity = $this->supportListingInfosRepository->getEntityFromDatabaseArray($wpt); |
996 | 996 | $this->supportListingInfosRepository->create($entity); |
997 | 997 | |
998 | - $amountAssignedCaches ++; |
|
998 | + $amountAssignedCaches++; |
|
999 | 999 | } |
1000 | 1000 | } |
1001 | 1001 | return([$amountAssignedCaches, $amountUpdatedCaches, $listOfAmbiguousCaches]); |
@@ -860,7 +860,9 @@ |
||
860 | 860 | if ((($fetchedListingInfo->nodeListingAvailable == true) && ($fetchedOCCache->status != 1)) || |
861 | 861 | (($fetchedListingInfo->nodeListingAvailable == false) && ($fetchedOCCache->status == 1))) { |
862 | 862 | array_push($tempArray, 'OC status != import status'); |
863 | - } else array_push($tempArray, ''); |
|
863 | + } else { |
|
864 | + array_push($tempArray, ''); |
|
865 | + } |
|
864 | 866 | |
865 | 867 | if ((($fetchedListingInfo->nodeListingArchived == true) && ($fetchedOCCache->status != 3)) || |
866 | 868 | (($fetchedListingInfo->nodeListingAvailable == false) && ($fetchedOCCache->status == 3))) { |
@@ -27,14 +27,14 @@ discard block |
||
27 | 27 | ], |
28 | 28 | 'constraints' => [ |
29 | 29 | new File([ |
30 | - 'maxSize' => '20480000', |
|
31 | - 'mimeTypes' => [ |
|
32 | - 'application/gpx+xml', |
|
33 | - 'application/xml', |
|
34 | - 'text/xml', |
|
35 | - ], |
|
36 | - 'mimeTypesMessage' => 'Please upload a valid GPX/XML document', |
|
37 | - ]) |
|
30 | + 'maxSize' => '20480000', |
|
31 | + 'mimeTypes' => [ |
|
32 | + 'application/gpx+xml', |
|
33 | + 'application/xml', |
|
34 | + 'text/xml', |
|
35 | + ], |
|
36 | + 'mimeTypesMessage' => 'Please upload a valid GPX/XML document', |
|
37 | + ]) |
|
38 | 38 | ], |
39 | 39 | 'multiple' => false, |
40 | 40 | 'required' => true, |
@@ -45,9 +45,9 @@ discard block |
||
45 | 45 | ) |
46 | 46 | ->add( |
47 | 47 | 'start_upload', SubmitType::class, [ |
48 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 100px;'], |
|
49 | - 'label' => ' |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $databaseArray |
144 | 144 | ); |
145 | 145 | |
146 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
146 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
147 | 147 | |
148 | 148 | return $entity; |
149 | 149 | } |
@@ -240,30 +240,30 @@ discard block |
||
240 | 240 | public function getEntityFromDatabaseArray(array $data) |
241 | 241 | { |
242 | 242 | $entity = new GeoCacheLogsArchivedEntity(); |
243 | - $entity->id = (int) $data['id']; |
|
244 | - $entity->uuid = (string) $data['uuid']; |
|
245 | - $entity->node = (int) $data['node']; |
|
243 | + $entity->id = (int)$data['id']; |
|
244 | + $entity->uuid = (string)$data['uuid']; |
|
245 | + $entity->node = (int)$data['node']; |
|
246 | 246 | $entity->dateCreated = new DateTime($data['date_created']); |
247 | 247 | $entity->entryLastModified = new DateTime($data['entry_last_modified']); |
248 | 248 | $entity->lastModified = date('Y-m-d H:i:s'); |
249 | - $entity->okapiSyncbase = (string) $data['okapi_syncbase']; |
|
249 | + $entity->okapiSyncbase = (string)$data['okapi_syncbase']; |
|
250 | 250 | $entity->logLastModified = new DateTime($data['log_last_modified']); |
251 | - $entity->cacheId = (int) $data['cache_id']; |
|
252 | - $entity->userId = (int) $data['user_id']; |
|
253 | - $entity->type = (int) $data['type']; |
|
254 | - $entity->ocTeamComment = (int) $data['oc_team_comment']; |
|
251 | + $entity->cacheId = (int)$data['cache_id']; |
|
252 | + $entity->userId = (int)$data['user_id']; |
|
253 | + $entity->type = (int)$data['type']; |
|
254 | + $entity->ocTeamComment = (int)$data['oc_team_comment']; |
|
255 | 255 | $entity->date = new DateTime($data['date']); |
256 | 256 | $entity->orderDate = new DateTime($data['order_date']); |
257 | - $entity->needsMaintenance = (int) $data['needs_maintenance']; |
|
258 | - $entity->listingOutdated = (int) $data['listing_outdated']; |
|
259 | - $entity->text = (string) $data['text']; |
|
260 | - $entity->textHtml = (int) $data['text_html']; |
|
261 | - $entity->textHtmledit = (int) $data['text_htmledit']; |
|
262 | - $entity->ownerNotified = (int) $data['owner_notified']; |
|
257 | + $entity->needsMaintenance = (int)$data['needs_maintenance']; |
|
258 | + $entity->listingOutdated = (int)$data['listing_outdated']; |
|
259 | + $entity->text = (string)$data['text']; |
|
260 | + $entity->textHtml = (int)$data['text_html']; |
|
261 | + $entity->textHtmledit = (int)$data['text_htmledit']; |
|
262 | + $entity->ownerNotified = (int)$data['owner_notified']; |
|
263 | 263 | $entity->picture = $data['picture']; |
264 | 264 | $entity->deletionDate = new DateTime($data['deletion_date']); |
265 | - $entity->deletedBy = (int) $data['deleted_by']; |
|
266 | - $entity->restoredBy = (int) $data['restored_by']; |
|
265 | + $entity->deletedBy = (int)$data['deleted_by']; |
|
266 | + $entity->restoredBy = (int)$data['restored_by']; |
|
267 | 267 | |
268 | 268 | return $entity; |
269 | 269 | } |
@@ -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 | } |
@@ -237,22 +237,22 @@ discard block |
||
237 | 237 | public function getEntityFromDatabaseArray(array $data) |
238 | 238 | : SupportListingInfosEntity { |
239 | 239 | $entity = new SupportListingInfosEntity(); |
240 | - $entity->id = (array_key_exists('id', $data)) ? (int) $data['id'] : NULL; |
|
241 | - $entity->wpOc = (string) $data['wp_oc']; |
|
242 | - $entity->nodeId = (int) $data['node_id']; |
|
243 | - $entity->nodeOwnerId = (string) $data['node_owner_id']; |
|
244 | - $entity->nodeListingId = (string) $data['node_listing_id']; |
|
245 | - $entity->nodeListingWp = (string) $data['node_listing_wp']; |
|
246 | - $entity->nodeListingName = (string) $data['node_listing_name']; |
|
247 | - $entity->nodeListingSize = (int) $data['node_listing_size']; |
|
248 | - $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty']; |
|
249 | - $entity->nodeListingTerrain = (int) $data['node_listing_terrain']; |
|
250 | - $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon']; |
|
251 | - $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat']; |
|
252 | - $entity->nodeListingAvailable = (bool) $data['node_listing_available']; |
|
253 | - $entity->nodeListingArchived = (bool) $data['node_listing_archived']; |
|
240 | + $entity->id = (array_key_exists('id', $data)) ? (int)$data['id'] : NULL; |
|
241 | + $entity->wpOc = (string)$data['wp_oc']; |
|
242 | + $entity->nodeId = (int)$data['node_id']; |
|
243 | + $entity->nodeOwnerId = (string)$data['node_owner_id']; |
|
244 | + $entity->nodeListingId = (string)$data['node_listing_id']; |
|
245 | + $entity->nodeListingWp = (string)$data['node_listing_wp']; |
|
246 | + $entity->nodeListingName = (string)$data['node_listing_name']; |
|
247 | + $entity->nodeListingSize = (int)$data['node_listing_size']; |
|
248 | + $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty']; |
|
249 | + $entity->nodeListingTerrain = (int)$data['node_listing_terrain']; |
|
250 | + $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon']; |
|
251 | + $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat']; |
|
252 | + $entity->nodeListingAvailable = (bool)$data['node_listing_available']; |
|
253 | + $entity->nodeListingArchived = (bool)$data['node_listing_archived']; |
|
254 | 254 | $entity->lastModified = date('Y-m-d H:i:s'); |
255 | - $entity->importStatus = (int) $data['importstatus']; |
|
255 | + $entity->importStatus = (int)$data['importstatus']; |
|
256 | 256 | $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]); |
257 | 257 | |
258 | 258 | return $entity; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $databaseArray |
183 | 183 | ); |
184 | 184 | |
185 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
185 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
186 | 186 | |
187 | 187 | return $entity; |
188 | 188 | } |
@@ -266,16 +266,16 @@ discard block |
||
266 | 266 | { |
267 | 267 | |
268 | 268 | $entity = new GeoCacheReportsEntity(); |
269 | - $entity->id = (int) $data['id']; |
|
269 | + $entity->id = (int)$data['id']; |
|
270 | 270 | $entity->dateCreated = new DateTime($data['date_created']); |
271 | - $entity->cacheid = (int) $data['cacheid']; |
|
272 | - $entity->userid = (int) $data['userid']; |
|
273 | - $entity->reason = (int) $data['reason']; |
|
274 | - $entity->note = (string) $data['note']; |
|
275 | - $entity->status = (int) $data['status']; |
|
276 | - $entity->adminid = (int) $data['adminid']; |
|
271 | + $entity->cacheid = (int)$data['cacheid']; |
|
272 | + $entity->userid = (int)$data['userid']; |
|
273 | + $entity->reason = (int)$data['reason']; |
|
274 | + $entity->note = (string)$data['note']; |
|
275 | + $entity->status = (int)$data['status']; |
|
276 | + $entity->adminid = (int)$data['adminid']; |
|
277 | 277 | $entity->lastmodified = date('Y-m-d H:i:s'); |
278 | - $entity->comment = (string) $data['comment']; |
|
278 | + $entity->comment = (string)$data['comment']; |
|
279 | 279 | $entity->cache = $this->cachesRepository->fetchOneBy(['cache_id' => $entity->cacheid]); |
280 | 280 | $entity->user = $this->userRepository->fetchOneById($entity->userid); |
281 | 281 | if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $databaseArray |
146 | 146 | ); |
147 | 147 | |
148 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
148 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
149 | 149 | |
150 | 150 | return $entity; |
151 | 151 | } |
@@ -223,11 +223,11 @@ discard block |
||
223 | 223 | public function getEntityFromDatabaseArray(array $data) |
224 | 224 | : SupportUserCommentsEntity { |
225 | 225 | $entity = new SupportUserCommentsEntity(0); |
226 | - $entity->id = (int) $data['id']; |
|
227 | - $entity->ocUserId = (int) $data['oc_user_id']; |
|
226 | + $entity->id = (int)$data['id']; |
|
227 | + $entity->ocUserId = (int)$data['oc_user_id']; |
|
228 | 228 | $entity->user = $this->userRepository->fetchOneById($entity->ocUserId); |
229 | - $entity->comment = (string) $data['comment']; |
|
230 | - $entity->commentCreated = (string) $data['comment_created']; |
|
229 | + $entity->comment = (string)$data['comment']; |
|
230 | + $entity->commentCreated = (string)$data['comment_created']; |
|
231 | 231 | $entity->commentLastModified = date('Y-m-d H:i:s'); |
232 | 232 | |
233 | 233 | return $entity; |