@@ -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]); |
@@ -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; |