@@ -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; |
@@ -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' => $formSQLFlex->createView(), |
|
269 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
270 | - ] |
|
267 | + 'supportCachesForm' => $formSearch->createView(), |
|
268 | + 'SQLFlexForm' => $formSQLFlex->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 | |
@@ -803,15 +803,15 @@ discard block |
||
803 | 803 | |
804 | 804 | return $this->render( |
805 | 805 | 'backend/support/occ_gpx_import.html.twig', [ |
806 | - 'supportCachesForm' => $formSearch->createView(), |
|
807 | - 'supportUploadGPXForm' => $formUpload->createView(), |
|
808 | - 'amountProcessedCaches' => $amountProcessedCaches, |
|
809 | - 'amountAssignedCaches' => $amountAssignedCaches, |
|
810 | - 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
811 | - 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
812 | - 'fetchedListingInfos' => $fetchedListingInfos, |
|
813 | - 'differencesDetected' => $differencesDetected |
|
814 | - ] |
|
806 | + 'supportCachesForm' => $formSearch->createView(), |
|
807 | + 'supportUploadGPXForm' => $formUpload->createView(), |
|
808 | + 'amountProcessedCaches' => $amountProcessedCaches, |
|
809 | + 'amountAssignedCaches' => $amountAssignedCaches, |
|
810 | + 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
811 | + 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
812 | + 'fetchedListingInfos' => $fetchedListingInfos, |
|
813 | + 'differencesDetected' => $differencesDetected |
|
814 | + ] |
|
815 | 815 | ); |
816 | 816 | } |
817 | 817 | |
@@ -864,7 +864,7 @@ discard block |
||
864 | 864 | |
865 | 865 | if ((($fetchedListingInfo->nodeListingAvailable == true) && ($fetchedOCCache->status != 1)) |
866 | 866 | || (($fetchedListingInfo->nodeListingAvailable |
867 | - == false) |
|
867 | + == false) |
|
868 | 868 | && ($fetchedOCCache->status == 1)) |
869 | 869 | ) { |
870 | 870 | array_push($tempArray, 'OC status != import status'); |
@@ -874,7 +874,7 @@ discard block |
||
874 | 874 | |
875 | 875 | if ((($fetchedListingInfo->nodeListingArchived == true) && ($fetchedOCCache->status != 3)) |
876 | 876 | || (($fetchedListingInfo->nodeListingAvailable |
877 | - == false) |
|
877 | + == false) |
|
878 | 878 | && ($fetchedOCCache->status == 3)) |
879 | 879 | ) { |
880 | 880 | array_push($tempArray, 'OC status != import status'); |
@@ -973,11 +973,11 @@ discard block |
||
973 | 973 | ] as $checkItem) { |
974 | 974 | if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) { |
975 | 975 | $newComment .= $checkItem |
976 | - . ' changed from ' |
|
977 | - . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
978 | - . ' to ' |
|
979 | - . $wpt[$checkItem] |
|
980 | - . PHP_EOL; |
|
976 | + . ' changed from ' |
|
977 | + . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
978 | + . ' to ' |
|
979 | + . $wpt[$checkItem] |
|
980 | + . PHP_EOL; |
|
981 | 981 | } |
982 | 982 | } |
983 | 983 |
@@ -246,10 +246,10 @@ discard block |
||
246 | 246 | $inputData = $formSQLFlex->getData(); |
247 | 247 | |
248 | 248 | $fetchedInformation = |
249 | - $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE'], (string) $inputData['content_CONDITION']); |
|
249 | + $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE'], (string)$inputData['content_CONDITION']); |
|
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); |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | $entity = $this->supportListingInfosRepository->getEntityFromDatabaseArray($wpt); |
1010 | 1010 | $this->supportListingInfosRepository->create($entity); |
1011 | 1011 | |
1012 | - $amountAssignedCaches ++; |
|
1012 | + $amountAssignedCaches++; |
|
1013 | 1013 | } |
1014 | 1014 | } |
1015 | 1015 |
@@ -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' => ' |
@@ -30,61 +30,61 @@ |
||
30 | 30 | ) |
31 | 31 | ->add( |
32 | 32 | 'content_WHAT', null, [ |
33 | - 'required' => true, |
|
34 | - 'data' => '*', |
|
35 | - 'attr' => [ |
|
36 | - 'style' => 'width: 180px;' |
|
37 | - ], |
|
38 | - 'disabled' => false, |
|
39 | - 'label' => false, |
|
40 | - 'trim' => true |
|
41 | - ] |
|
33 | + 'required' => true, |
|
34 | + 'data' => '*', |
|
35 | + 'attr' => [ |
|
36 | + 'style' => 'width: 180px;' |
|
37 | + ], |
|
38 | + 'disabled' => false, |
|
39 | + 'label' => false, |
|
40 | + 'trim' => true |
|
41 | + ] |
|
42 | 42 | ) |
43 | 43 | ->add( |
44 | 44 | 'content_FROM', ChoiceType::class, [ |
45 | - 'choices' => ['FROM' => 'FROM'], |
|
46 | - 'attr' => [ |
|
47 | - 'style' => 'width: 180px;' |
|
48 | - ], |
|
49 | - 'disabled' => true, |
|
50 | - 'label' => false, |
|
51 | - 'trim' => true |
|
52 | - ] |
|
45 | + 'choices' => ['FROM' => 'FROM'], |
|
46 | + 'attr' => [ |
|
47 | + 'style' => 'width: 180px;' |
|
48 | + ], |
|
49 | + 'disabled' => true, |
|
50 | + 'label' => false, |
|
51 | + 'trim' => true |
|
52 | + ] |
|
53 | 53 | ) |
54 | 54 | ->add( |
55 | 55 | 'content_TABLE', ChoiceType::class, [ |
56 | - 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
57 | - 'attr' => [ |
|
58 | - 'style' => 'width: 180px;' |
|
59 | - ], |
|
60 | - 'disabled' => false, |
|
61 | - 'label' => false, |
|
62 | - 'trim' => true |
|
63 | - ] |
|
56 | + 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
57 | + 'attr' => [ |
|
58 | + 'style' => 'width: 180px;' |
|
59 | + ], |
|
60 | + 'disabled' => false, |
|
61 | + 'label' => false, |
|
62 | + 'trim' => true |
|
63 | + ] |
|
64 | 64 | ) |
65 | 65 | ->add( |
66 | 66 | 'content_WHERE', ChoiceType::class, [ |
67 | - 'choices' => ['WHERE' => 'WHERE'], |
|
68 | - 'attr' => [ |
|
69 | - 'style' => 'width: 180px;' |
|
70 | - ], |
|
71 | - 'disabled' => true, |
|
72 | - 'label' => false, |
|
73 | - 'trim' => true |
|
74 | - ] |
|
67 | + 'choices' => ['WHERE' => 'WHERE'], |
|
68 | + 'attr' => [ |
|
69 | + 'style' => 'width: 180px;' |
|
70 | + ], |
|
71 | + 'disabled' => true, |
|
72 | + 'label' => false, |
|
73 | + 'trim' => true |
|
74 | + ] |
|
75 | 75 | ) |
76 | 76 | ->add( |
77 | 77 | 'content_CONDITION', null, [ |
78 | - 'required' => false, |
|
79 | - 'data' => '', |
|
80 | - 'attr' => [ |
|
81 | - 'placeholder' => 'id=\'123\'', |
|
82 | - 'style' => 'width: 180px;' |
|
83 | - ], |
|
84 | - 'disabled' => false, |
|
85 | - 'label' => false, |
|
86 | - 'trim' => true |
|
87 | - ] |
|
78 | + 'required' => false, |
|
79 | + 'data' => '', |
|
80 | + 'attr' => [ |
|
81 | + 'placeholder' => 'id=\'123\'', |
|
82 | + 'style' => 'width: 180px;' |
|
83 | + ], |
|
84 | + 'disabled' => false, |
|
85 | + 'label' => false, |
|
86 | + 'trim' => true |
|
87 | + ] |
|
88 | 88 | ) |
89 | 89 | ->add( |
90 | 90 | 'Suchen', SubmitType::class, [ |