@@ -24,27 +24,27 @@ |
||
| 24 | 24 | $builder |
| 25 | 25 | ->add( |
| 26 | 26 | 'content_comment_field', TextareaType::class, [ |
| 27 | - 'attr' => [ |
|
| 28 | - 'maxlength' => '100000', |
|
| 29 | - 'overflow' => 'auto', |
|
| 30 | - 'rows' => '10', |
|
| 31 | - ], |
|
| 32 | - 'required' => false, |
|
| 33 | - 'disabled' => false, |
|
| 34 | - 'label' => false, |
|
| 35 | - 'trim' => true |
|
| 36 | - ] |
|
| 27 | + 'attr' => [ |
|
| 28 | + 'maxlength' => '100000', |
|
| 29 | + 'overflow' => 'auto', |
|
| 30 | + 'rows' => '10', |
|
| 31 | + ], |
|
| 32 | + 'required' => false, |
|
| 33 | + 'disabled' => false, |
|
| 34 | + 'label' => false, |
|
| 35 | + 'trim' => true |
|
| 36 | + ] |
|
| 37 | 37 | ) |
| 38 | 38 | ->add( |
| 39 | 39 | 'save_comment_button', SubmitType::class, [ |
| 40 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 180px;'], |
|
| 41 | - 'label' => ' |
|
@@ -165,9 +165,9 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | return $this->render( |
| 167 | 167 | 'backend/support/searchedCaches.html.twig', [ |
| 168 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 169 | - 'foundCaches' => $fetchedCaches |
|
| 170 | - ] |
|
| 168 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 169 | + 'foundCaches' => $fetchedCaches |
|
| 170 | + ] |
|
| 171 | 171 | ); |
| 172 | 172 | } |
| 173 | 173 | |
@@ -186,9 +186,9 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | return $this->render( |
| 188 | 188 | 'backend/support/reportedCaches.html.twig', [ |
| 189 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 190 | - 'reportedCaches_by_id' => $fetchedReports |
|
| 191 | - ] |
|
| 189 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 190 | + 'reportedCaches_by_id' => $fetchedReports |
|
| 191 | + ] |
|
| 192 | 192 | ); |
| 193 | 193 | } |
| 194 | 194 | |
@@ -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 | |
@@ -482,16 +482,16 @@ discard block |
||
| 482 | 482 | |
| 483 | 483 | return $this->render( |
| 484 | 484 | 'backend/support/occ.html.twig', [ |
| 485 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 486 | - 'supportCommentFormUser' => $formCommentUser->createView(), |
|
| 487 | - 'supportCommentFormCache' => $formCommentCache->createView(), |
|
| 488 | - 'occ_cache_data' => $fetchedCacheData, |
|
| 489 | - 'occ_cache_comments' => $fetchedCacheComments, |
|
| 490 | - 'occ_cache_infos' => $fetchedCacheInfos, |
|
| 491 | - 'occ_user_data' => $fetchedUserData, |
|
| 492 | - 'occ_user_comments' => $fetchedUserComments, |
|
| 493 | - 'occ_user_relations' => $fetchedUserRelations |
|
| 494 | - ] |
|
| 485 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 486 | + 'supportCommentFormUser' => $formCommentUser->createView(), |
|
| 487 | + 'supportCommentFormCache' => $formCommentCache->createView(), |
|
| 488 | + 'occ_cache_data' => $fetchedCacheData, |
|
| 489 | + 'occ_cache_comments' => $fetchedCacheComments, |
|
| 490 | + 'occ_cache_infos' => $fetchedCacheInfos, |
|
| 491 | + 'occ_user_data' => $fetchedUserData, |
|
| 492 | + 'occ_user_comments' => $fetchedUserComments, |
|
| 493 | + 'occ_user_relations' => $fetchedUserRelations |
|
| 494 | + ] |
|
| 495 | 495 | ); |
| 496 | 496 | } |
| 497 | 497 | |
@@ -577,9 +577,9 @@ discard block |
||
| 577 | 577 | |
| 578 | 578 | return $this->render( |
| 579 | 579 | 'backend/support/databaseQueries.html.twig', [ |
| 580 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 581 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
| 582 | - ] |
|
| 580 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 581 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
| 582 | + ] |
|
| 583 | 583 | ); |
| 584 | 584 | } |
| 585 | 585 | |
@@ -603,9 +603,9 @@ discard block |
||
| 603 | 603 | |
| 604 | 604 | return $this->render( |
| 605 | 605 | 'backend/support/databaseQueries.html.twig', [ |
| 606 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 607 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
| 608 | - ] |
|
| 606 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 607 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
| 608 | + ] |
|
| 609 | 609 | ); |
| 610 | 610 | } |
| 611 | 611 | |
@@ -631,9 +631,9 @@ discard block |
||
| 631 | 631 | |
| 632 | 632 | return $this->render( |
| 633 | 633 | 'backend/support/databaseQueries.html.twig', [ |
| 634 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 635 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
| 636 | - ] |
|
| 634 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 635 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
| 636 | + ] |
|
| 637 | 637 | ); |
| 638 | 638 | } |
| 639 | 639 | |
@@ -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 | } |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | if ($form->isSubmitted() && $form->isValid()) { |
| 304 | 304 | $inputData = $form->getData(); |
| 305 | 305 | |
| 306 | - $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_ID']]); |
|
| 306 | + $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_ID']]); |
|
| 307 | 307 | $entity->comment = $inputData['content_comment_field']; |
| 308 | 308 | |
| 309 | 309 | $this->cacheReportsRepository->update($entity); |
@@ -334,16 +334,16 @@ discard block |
||
| 334 | 334 | // die(); |
| 335 | 335 | |
| 336 | 336 | if ($inputData['hidden_sender'] == 'textfield_cache_comment') { |
| 337 | - $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string) $inputData['hidden_ID2']]); |
|
| 337 | + $entity = $this->supportListingCommentsRepository->fetchOneBy(['wp_oc' => (string)$inputData['hidden_ID2']]); |
|
| 338 | 338 | $entity->comment = $inputData['content_comment_field']; |
| 339 | 339 | $this->supportListingCommentsRepository->update($entity); |
| 340 | 340 | } elseif ($inputData['hidden_sender'] == 'textfield_user_comment') { |
| 341 | - $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int) $inputData['hidden_ID']]); |
|
| 341 | + $entity = $this->supportUserCommentsRepository->fetchOneBy(['oc_user_id' => (int)$inputData['hidden_ID']]); |
|
| 342 | 342 | $entity->comment = $inputData['content_comment_field']; |
| 343 | 343 | $this->supportUserCommentsRepository->update($entity); |
| 344 | 344 | } |
| 345 | 345 | |
| 346 | - return $this->redirectToRoute('backend_support_occ', ['userID' => (string) $inputData['hidden_ID'], 'wpID' => (string) $inputData['hidden_ID2']]); |
|
| 346 | + return $this->redirectToRoute('backend_support_occ', ['userID' => (string)$inputData['hidden_ID'], 'wpID' => (string)$inputData['hidden_ID2']]); |
|
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | return $this->redirectToRoute('backend_support_occ'); |
@@ -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,12 +223,12 @@ 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']; |
|
| 231 | - $entity->commentLastModified = (string) $data['comment_last_modified']; |
|
| 229 | + $entity->comment = (string)$data['comment']; |
|
| 230 | + $entity->commentCreated = (string)$data['comment_created']; |
|
| 231 | + $entity->commentLastModified = (string)$data['comment_last_modified']; |
|
| 232 | 232 | |
| 233 | 233 | return $entity; |
| 234 | 234 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | $databaseArray |
| 150 | 150 | ); |
| 151 | 151 | |
| 152 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 152 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 153 | 153 | |
| 154 | 154 | return $entity; |
| 155 | 155 | } |
@@ -237,21 +237,21 @@ discard block |
||
| 237 | 237 | public function getEntityFromDatabaseArray(array $data) |
| 238 | 238 | : SupportListingInfosEntity { |
| 239 | 239 | $entity = new SupportListingInfosEntity(); |
| 240 | - $entity->id = (int) $data['id']; |
|
| 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->nodeListingArchived = (bool) $data['node_listing_archived']; |
|
| 240 | + $entity->id = (int)$data['id']; |
|
| 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->nodeListingArchived = (bool)$data['node_listing_archived']; |
|
| 253 | 253 | $entity->lastModified = new DateTime($data['last_modified']); |
| 254 | - $entity->importStatus = (int) $data['importstatus']; |
|
| 254 | + $entity->importStatus = (int)$data['importstatus']; |
|
| 255 | 255 | $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]); |
| 256 | 256 | |
| 257 | 257 | return $entity; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $databaseArray |
| 154 | 154 | ); |
| 155 | 155 | |
| 156 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 156 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 157 | 157 | |
| 158 | 158 | return $entity; |
| 159 | 159 | } |
@@ -231,11 +231,11 @@ discard block |
||
| 231 | 231 | public function getEntityFromDatabaseArray(array $data) |
| 232 | 232 | : SupportUserRelationsEntity { |
| 233 | 233 | $entity = new SupportUserRelationsEntity(); |
| 234 | - $entity->id = (int) $data['id']; |
|
| 235 | - $entity->ocUserId = (int) $data['oc_user_id']; |
|
| 236 | - $entity->nodeId = (int) $data['node_id']; |
|
| 237 | - $entity->nodeUserId = (string) $data['node_user_id']; |
|
| 238 | - $entity->nodeUsername = (string) $data['node_username']; |
|
| 234 | + $entity->id = (int)$data['id']; |
|
| 235 | + $entity->ocUserId = (int)$data['oc_user_id']; |
|
| 236 | + $entity->nodeId = (int)$data['node_id']; |
|
| 237 | + $entity->nodeUserId = (string)$data['node_user_id']; |
|
| 238 | + $entity->nodeUsername = (string)$data['node_username']; |
|
| 239 | 239 | $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]); |
| 240 | 240 | $entity->user = $this->userRepository->fetchOneById($entity->ocUserId); |
| 241 | 241 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | $databaseArray |
| 142 | 142 | ); |
| 143 | 143 | |
| 144 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 144 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 145 | 145 | |
| 146 | 146 | return $entity; |
| 147 | 147 | } |
@@ -219,11 +219,11 @@ discard block |
||
| 219 | 219 | public function getEntityFromDatabaseArray(array $data) |
| 220 | 220 | : SupportListingCommentsEntity { |
| 221 | 221 | $entity = new SupportListingCommentsEntity(''); |
| 222 | - $entity->id = (int) $data['id']; |
|
| 223 | - $entity->wpOc = (string) $data['wp_oc']; |
|
| 224 | - $entity->comment = (string) $data['comment']; |
|
| 225 | - $entity->commentCreated = (string) $data['comment_created']; |
|
| 226 | - $entity->commentLastModified = (string) $data['comment_last_modified']; |
|
| 222 | + $entity->id = (int)$data['id']; |
|
| 223 | + $entity->wpOc = (string)$data['wp_oc']; |
|
| 224 | + $entity->comment = (string)$data['comment']; |
|
| 225 | + $entity->commentCreated = (string)$data['comment_created']; |
|
| 226 | + $entity->commentLastModified = (string)$data['comment_last_modified']; |
|
| 227 | 227 | |
| 228 | 228 | return $entity; |
| 229 | 229 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new NodesEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->name = (string) $data['name']; |
|
| 193 | - $entity->url = (string) $data['url']; |
|
| 194 | - $entity->waypointPrefix = (string) $data['waypoint_prefix']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->name = (string)$data['name']; |
|
| 193 | + $entity->url = (string)$data['url']; |
|
| 194 | + $entity->waypointPrefix = (string)$data['waypoint_prefix']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $databaseArray |
| 141 | 141 | ); |
| 142 | 142 | |
| 143 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 143 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 144 | 144 | |
| 145 | 145 | return $entity; |
| 146 | 146 | } |
@@ -216,10 +216,10 @@ discard block |
||
| 216 | 216 | public function getEntityFromDatabaseArray(array $data) |
| 217 | 217 | : SupportBonuscachesEntity { |
| 218 | 218 | $entity = new SupportBonuscachesEntity(); |
| 219 | - $entity->id = (int) $data['id']; |
|
| 220 | - $entity->wpOc = (string) $data['wp_oc']; |
|
| 221 | - $entity->isBonusCache = (bool) $data['is_bonus_cache']; |
|
| 222 | - $entity->belongsToBonusCache = (string) $data['belongs_to_bonus_cache']; |
|
| 219 | + $entity->id = (int)$data['id']; |
|
| 220 | + $entity->wpOc = (string)$data['wp_oc']; |
|
| 221 | + $entity->isBonusCache = (bool)$data['is_bonus_cache']; |
|
| 222 | + $entity->belongsToBonusCache = (string)$data['belongs_to_bonus_cache']; |
|
| 223 | 223 | |
| 224 | 224 | return $entity; |
| 225 | 225 | } |