@@ -16,40 +16,40 @@ |
||
16 | 16 | $builder |
17 | 17 | ->add( |
18 | 18 | 'content_wp_to_be_assigned', null, [ |
19 | - 'attr' => [ |
|
20 | - 'placeholder' => 'waypoint', |
|
21 | - 'size' => '10%', |
|
22 | - 'minlength' => '6', |
|
23 | - 'maxlength' => '7', |
|
24 | - 'pattern' => '[a-fA-FoO0-9]{6,7}', |
|
25 | - 'style' => 'width: 250px;' |
|
26 | - ], |
|
27 | - 'required' => false, |
|
28 | - 'disabled' => false, |
|
29 | - 'label' => false, |
|
30 | - 'trim' => true |
|
31 | - ] |
|
19 | + 'attr' => [ |
|
20 | + 'placeholder' => 'waypoint', |
|
21 | + 'size' => '10%', |
|
22 | + 'minlength' => '6', |
|
23 | + 'maxlength' => '7', |
|
24 | + 'pattern' => '[a-fA-FoO0-9]{6,7}', |
|
25 | + 'style' => 'width: 250px;' |
|
26 | + ], |
|
27 | + 'required' => false, |
|
28 | + 'disabled' => false, |
|
29 | + 'label' => false, |
|
30 | + 'trim' => true |
|
31 | + ] |
|
32 | 32 | ) |
33 | 33 | ->add( |
34 | 34 | 'content_wp_that_is_bonus_cache', null, [ |
35 | - 'attr' => [ |
|
36 | - 'placeholder' => 'waypoint bonus', |
|
37 | - 'size' => '10%', |
|
38 | - 'minlength' => '6', |
|
39 | - 'maxlength' => '7', |
|
40 | - 'style' => 'width: 250px;' |
|
41 | - ], |
|
42 | - 'required' => true, |
|
43 | - 'disabled' => false, |
|
44 | - 'label' => false, |
|
45 | - 'trim' => true |
|
46 | - ] |
|
35 | + 'attr' => [ |
|
36 | + 'placeholder' => 'waypoint bonus', |
|
37 | + 'size' => '10%', |
|
38 | + 'minlength' => '6', |
|
39 | + 'maxlength' => '7', |
|
40 | + 'style' => 'width: 250px;' |
|
41 | + ], |
|
42 | + 'required' => true, |
|
43 | + 'disabled' => false, |
|
44 | + 'label' => false, |
|
45 | + 'trim' => true |
|
46 | + ] |
|
47 | 47 | ) |
48 | 48 | ->add( |
49 | 49 | 'start_assignment', SubmitType::class, [ |
50 | - 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 100px;'], |
|
51 | - 'label' => false |
|
52 | - ] |
|
50 | + 'attr' => ['class' => 'btn btn-primary', 'style' => 'width: 100px;'], |
|
51 | + 'label' => false |
|
52 | + ] |
|
53 | 53 | ); |
54 | 54 | } |
55 | 55 | } |
@@ -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 | } |
@@ -220,10 +220,10 @@ discard block |
||
220 | 220 | public function getEntityFromDatabaseArray(array $data) : NodesEntity |
221 | 221 | { |
222 | 222 | $entity = new NodesEntity(); |
223 | - $entity->id = (int) $data['id']; |
|
224 | - $entity->name = (string) $data['name']; |
|
225 | - $entity->url = (string) $data['url']; |
|
226 | - $entity->waypointPrefix = (string) $data['waypoint_prefix']; |
|
223 | + $entity->id = (int)$data['id']; |
|
224 | + $entity->name = (string)$data['name']; |
|
225 | + $entity->url = (string)$data['url']; |
|
226 | + $entity->waypointPrefix = (string)$data['waypoint_prefix']; |
|
227 | 227 | |
228 | 228 | return $entity; |
229 | 229 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | $databaseArray |
153 | 153 | ); |
154 | 154 | |
155 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
155 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
156 | 156 | |
157 | 157 | return $entity; |
158 | 158 | } |
@@ -241,22 +241,22 @@ discard block |
||
241 | 241 | public function getEntityFromDatabaseArray(array $data) |
242 | 242 | : SupportListingInfosEntity { |
243 | 243 | $entity = new SupportListingInfosEntity(); |
244 | - $entity->id = ((int) $data['id']) ?? NULL; |
|
245 | - $entity->wpOc = (string) $data['wp_oc']; |
|
246 | - $entity->nodeId = (int) $data['node_id']; |
|
247 | - $entity->nodeOwnerId = (string) $data['node_owner_id']; |
|
248 | - $entity->nodeListingId = (string) $data['node_listing_id']; |
|
249 | - $entity->nodeListingWp = (string) $data['node_listing_wp']; |
|
250 | - $entity->nodeListingName = (string) $data['node_listing_name']; |
|
251 | - $entity->nodeListingSize = (int) $data['node_listing_size']; |
|
252 | - $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty']; |
|
253 | - $entity->nodeListingTerrain = (int) $data['node_listing_terrain']; |
|
254 | - $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon']; |
|
255 | - $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat']; |
|
256 | - $entity->nodeListingAvailable = (bool) $data['node_listing_available']; |
|
257 | - $entity->nodeListingArchived = (bool) $data['node_listing_archived']; |
|
244 | + $entity->id = ((int)$data['id']) ?? NULL; |
|
245 | + $entity->wpOc = (string)$data['wp_oc']; |
|
246 | + $entity->nodeId = (int)$data['node_id']; |
|
247 | + $entity->nodeOwnerId = (string)$data['node_owner_id']; |
|
248 | + $entity->nodeListingId = (string)$data['node_listing_id']; |
|
249 | + $entity->nodeListingWp = (string)$data['node_listing_wp']; |
|
250 | + $entity->nodeListingName = (string)$data['node_listing_name']; |
|
251 | + $entity->nodeListingSize = (int)$data['node_listing_size']; |
|
252 | + $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty']; |
|
253 | + $entity->nodeListingTerrain = (int)$data['node_listing_terrain']; |
|
254 | + $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon']; |
|
255 | + $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat']; |
|
256 | + $entity->nodeListingAvailable = (bool)$data['node_listing_available']; |
|
257 | + $entity->nodeListingArchived = (bool)$data['node_listing_archived']; |
|
258 | 258 | $entity->lastModified = date('Y-m-d H:i:s'); |
259 | - $entity->importStatus = (int) $data['importstatus']; |
|
259 | + $entity->importStatus = (int)$data['importstatus']; |
|
260 | 260 | $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]); |
261 | 261 | |
262 | 262 | return $entity; |
@@ -184,9 +184,9 @@ discard block |
||
184 | 184 | |
185 | 185 | return $this->render( |
186 | 186 | 'backend/support/searchedCaches.html.twig', [ |
187 | - 'supportCachesForm' => $formSearch->createView(), |
|
188 | - 'foundCaches' => $fetchedCaches |
|
189 | - ] |
|
187 | + 'supportCachesForm' => $formSearch->createView(), |
|
188 | + 'foundCaches' => $fetchedCaches |
|
189 | + ] |
|
190 | 190 | ); |
191 | 191 | } |
192 | 192 | |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | |
206 | 206 | return $this->render( |
207 | 207 | 'backend/support/reportedCaches.html.twig', [ |
208 | - 'supportCachesForm' => $formSearch->createView(), |
|
209 | - 'reportedCaches_by_id' => $fetchedReports |
|
210 | - ] |
|
208 | + 'supportCachesForm' => $formSearch->createView(), |
|
209 | + 'reportedCaches_by_id' => $fetchedReports |
|
210 | + ] |
|
211 | 211 | ); |
212 | 212 | } |
213 | 213 | |
@@ -226,10 +226,10 @@ discard block |
||
226 | 226 | |
227 | 227 | return $this->render( |
228 | 228 | 'backend/support/bonusCaches.html.twig', [ |
229 | - 'supportCachesForm' => $formSearch->createView(), |
|
230 | - 'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(), |
|
231 | - 'bonusCaches_by_id' => $fetchedBonuscaches |
|
232 | - ] |
|
229 | + 'supportCachesForm' => $formSearch->createView(), |
|
230 | + 'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(), |
|
231 | + 'bonusCaches_by_id' => $fetchedBonuscaches |
|
232 | + ] |
|
233 | 233 | ); |
234 | 234 | } |
235 | 235 | |
@@ -250,10 +250,10 @@ discard block |
||
250 | 250 | |
251 | 251 | return $this->render( |
252 | 252 | 'backend/support/bonusCachesAssignment.html.twig', [ |
253 | - 'supportCachesForm' => $formSearch->createView(), |
|
254 | - 'bonus_Cache' => $wpID, |
|
255 | - 'caches_by_owner' => $fetchedOwnerCaches |
|
256 | - ] |
|
253 | + 'supportCachesForm' => $formSearch->createView(), |
|
254 | + 'bonus_Cache' => $wpID, |
|
255 | + 'caches_by_owner' => $fetchedOwnerCaches |
|
256 | + ] |
|
257 | 257 | ); |
258 | 258 | } |
259 | 259 | |
@@ -279,10 +279,10 @@ discard block |
||
279 | 279 | |
280 | 280 | return $this->render( |
281 | 281 | 'backend/support/bonusCachesAssignment.html.twig', [ |
282 | - 'supportCachesForm' => $formSearch->createView(), |
|
283 | - 'bonus_Cache' => $toBonusCache, |
|
284 | - 'caches_by_owner' => $fetchedOwnerCaches |
|
285 | - ] |
|
282 | + 'supportCachesForm' => $formSearch->createView(), |
|
283 | + 'bonus_Cache' => $toBonusCache, |
|
284 | + 'caches_by_owner' => $fetchedOwnerCaches |
|
285 | + ] |
|
286 | 286 | ); |
287 | 287 | } |
288 | 288 | |
@@ -388,10 +388,10 @@ discard block |
||
388 | 388 | |
389 | 389 | return $this->render( |
390 | 390 | 'backend/support/databaseQueries.html.twig', [ |
391 | - 'supportCachesForm' => $formSearch->createView(), |
|
392 | - 'SQLFlexForm' => $formSQLFlex->createView(), |
|
393 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
394 | - ] |
|
391 | + 'supportCachesForm' => $formSearch->createView(), |
|
392 | + 'SQLFlexForm' => $formSQLFlex->createView(), |
|
393 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
394 | + ] |
|
395 | 395 | ); |
396 | 396 | } |
397 | 397 | |
@@ -519,16 +519,16 @@ discard block |
||
519 | 519 | |
520 | 520 | return $this->render( |
521 | 521 | 'backend/support/occ.html.twig', [ |
522 | - 'supportCachesForm' => $formSearch->createView(), |
|
523 | - 'supportCommentFormUser' => $formCommentUser->createView(), |
|
524 | - 'supportCommentFormCache' => $formCommentCache->createView(), |
|
525 | - 'occ_cache_data' => $fetchedCacheData, |
|
526 | - 'occ_cache_comments' => $fetchedCacheComments, |
|
527 | - 'occ_cache_infos' => $fetchedCacheInfos, |
|
528 | - 'occ_user_data' => $fetchedUserData, |
|
529 | - 'occ_user_comments' => $fetchedUserComments, |
|
530 | - 'occ_user_relations' => $fetchedUserRelations |
|
531 | - ] |
|
522 | + 'supportCachesForm' => $formSearch->createView(), |
|
523 | + 'supportCommentFormUser' => $formCommentUser->createView(), |
|
524 | + 'supportCommentFormCache' => $formCommentCache->createView(), |
|
525 | + 'occ_cache_data' => $fetchedCacheData, |
|
526 | + 'occ_cache_comments' => $fetchedCacheComments, |
|
527 | + 'occ_cache_infos' => $fetchedCacheInfos, |
|
528 | + 'occ_user_data' => $fetchedUserData, |
|
529 | + 'occ_user_comments' => $fetchedUserComments, |
|
530 | + 'occ_user_relations' => $fetchedUserRelations |
|
531 | + ] |
|
532 | 532 | ); |
533 | 533 | } |
534 | 534 | |
@@ -652,10 +652,10 @@ discard block |
||
652 | 652 | |
653 | 653 | return $this->render( |
654 | 654 | 'backend/support/userDetails.html.twig', [ |
655 | - 'supportCachesForm' => $formSearch->createView(), |
|
656 | - 'supportUserAccountActions' => $formActions->createView(), |
|
657 | - 'user_account_details' => $fetchedUserDetails |
|
658 | - ] |
|
655 | + 'supportCachesForm' => $formSearch->createView(), |
|
656 | + 'supportUserAccountActions' => $formActions->createView(), |
|
657 | + 'user_account_details' => $fetchedUserDetails |
|
658 | + ] |
|
659 | 659 | ); |
660 | 660 | } |
661 | 661 | |
@@ -744,9 +744,9 @@ discard block |
||
744 | 744 | |
745 | 745 | return $this->render( |
746 | 746 | 'backend/support/databaseQueries.html.twig', [ |
747 | - 'supportCachesForm' => $formSearch->createView(), |
|
748 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
749 | - ] |
|
747 | + 'supportCachesForm' => $formSearch->createView(), |
|
748 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
749 | + ] |
|
750 | 750 | ); |
751 | 751 | } |
752 | 752 | |
@@ -770,9 +770,9 @@ discard block |
||
770 | 770 | |
771 | 771 | return $this->render( |
772 | 772 | 'backend/support/databaseQueries.html.twig', [ |
773 | - 'supportCachesForm' => $formSearch->createView(), |
|
774 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
775 | - ] |
|
773 | + 'supportCachesForm' => $formSearch->createView(), |
|
774 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
775 | + ] |
|
776 | 776 | ); |
777 | 777 | } |
778 | 778 | |
@@ -798,9 +798,9 @@ discard block |
||
798 | 798 | |
799 | 799 | return $this->render( |
800 | 800 | 'backend/support/databaseQueries.html.twig', [ |
801 | - 'supportCachesForm' => $formSearch->createView(), |
|
802 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
803 | - ] |
|
801 | + 'supportCachesForm' => $formSearch->createView(), |
|
802 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
803 | + ] |
|
804 | 804 | ); |
805 | 805 | } |
806 | 806 | |
@@ -816,9 +816,9 @@ discard block |
||
816 | 816 | |
817 | 817 | return $this->render( |
818 | 818 | 'backend/support/databaseQueries.html.twig', [ |
819 | - 'supportCachesForm' => $formSearch->createView(), |
|
820 | - 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
821 | - ] |
|
819 | + 'supportCachesForm' => $formSearch->createView(), |
|
820 | + 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
821 | + ] |
|
822 | 822 | ); |
823 | 823 | } |
824 | 824 | |
@@ -927,15 +927,15 @@ discard block |
||
927 | 927 | |
928 | 928 | return $this->render( |
929 | 929 | 'backend/support/occ_gpx_import.html.twig', [ |
930 | - 'supportCachesForm' => $formSearch->createView(), |
|
931 | - 'supportUploadGPXForm' => $formUpload->createView(), |
|
932 | - 'amountProcessedCaches' => $amountProcessedCaches, |
|
933 | - 'amountAssignedCaches' => $amountAssignedCaches, |
|
934 | - 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
935 | - 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
936 | - 'fetchedListingInfos' => $fetchedListingInfos, |
|
937 | - 'differencesDetected' => $differencesDetected |
|
938 | - ] |
|
930 | + 'supportCachesForm' => $formSearch->createView(), |
|
931 | + 'supportUploadGPXForm' => $formUpload->createView(), |
|
932 | + 'amountProcessedCaches' => $amountProcessedCaches, |
|
933 | + 'amountAssignedCaches' => $amountAssignedCaches, |
|
934 | + 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
935 | + 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
936 | + 'fetchedListingInfos' => $fetchedListingInfos, |
|
937 | + 'differencesDetected' => $differencesDetected |
|
938 | + ] |
|
939 | 939 | ); |
940 | 940 | } |
941 | 941 | |
@@ -988,7 +988,7 @@ discard block |
||
988 | 988 | |
989 | 989 | if ((($fetchedListingInfo->nodeListingAvailable == true) && ($fetchedOCCache->status != 1)) |
990 | 990 | || (($fetchedListingInfo->nodeListingAvailable |
991 | - == false) |
|
991 | + == false) |
|
992 | 992 | && ($fetchedOCCache->status == 1)) |
993 | 993 | ) { |
994 | 994 | array_push($tempArray, 'OC status != import status'); |
@@ -998,7 +998,7 @@ discard block |
||
998 | 998 | |
999 | 999 | if ((($fetchedListingInfo->nodeListingArchived == true) && ($fetchedOCCache->status != 3)) |
1000 | 1000 | || (($fetchedListingInfo->nodeListingAvailable |
1001 | - == false) |
|
1001 | + == false) |
|
1002 | 1002 | && ($fetchedOCCache->status == 3)) |
1003 | 1003 | ) { |
1004 | 1004 | array_push($tempArray, 'OC status != import status'); |
@@ -1098,11 +1098,11 @@ discard block |
||
1098 | 1098 | ] as $checkItem) { |
1099 | 1099 | if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) { |
1100 | 1100 | $newComment .= $checkItem |
1101 | - . ' changed from ' |
|
1102 | - . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
1103 | - . ' to ' |
|
1104 | - . $wpt[$checkItem] |
|
1105 | - . PHP_EOL; |
|
1101 | + . ' changed from ' |
|
1102 | + . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
1103 | + . ' to ' |
|
1104 | + . $wpt[$checkItem] |
|
1105 | + . PHP_EOL; |
|
1106 | 1106 | } |
1107 | 1107 | } |
1108 | 1108 |