@@ -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 | } |