@@ -20,8 +20,8 @@ |
||
| 20 | 20 | if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) { |
| 21 | 21 | Request::setTrustedProxies( |
| 22 | 22 | explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR |
| 23 | - ^ Request::HEADER_X_FORWARDED_PROTO |
|
| 24 | - ^ Request::HEADER_X_FORWARDED_PORT |
|
| 23 | + ^ Request::HEADER_X_FORWARDED_PROTO |
|
| 24 | + ^ Request::HEADER_X_FORWARDED_PORT |
|
| 25 | 25 | ); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | Request::setTrustedHosts([$trustedHosts]); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); |
|
| 32 | +$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']); |
|
| 33 | 33 | $request = Request::createFromGlobals(); |
| 34 | 34 | $response = $kernel->handle($request); |
| 35 | 35 | $response->send(); |
@@ -63,8 +63,8 @@ discard block |
||
| 63 | 63 | private function ocOnly81_get_matrixData() |
| 64 | 64 | : array |
| 65 | 65 | { |
| 66 | - for ($i = 0; $i <= 8; $i ++) { |
|
| 67 | - for ($j = 0; $j <= 8; $j ++) { |
|
| 66 | + for ($i = 0; $i <= 8; $i++) { |
|
| 67 | + for ($j = 0; $j <= 8; $j++) { |
|
| 68 | 68 | $matrix[$i][$j] = 0; |
| 69 | 69 | $dsum[$i] = 0; |
| 70 | 70 | $tsum[$i] = 0; |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | $data = $qb->execute()->fetchAllAssociative(); |
| 82 | 82 | |
| 83 | 83 | foreach ($data as $item) { |
| 84 | - $matrix[$item['difficulty'] - 2][$item['terrain'] - 2] ++; |
|
| 84 | + $matrix[$item['difficulty'] - 2][$item['terrain'] - 2]++; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - for ($i = 0; $i <= 8; $i ++) { |
|
| 87 | + for ($i = 0; $i <= 8; $i++) { |
|
| 88 | 88 | $dsum[$i] = $dsum[$i] + array_sum($matrix[$i]); |
| 89 | 89 | $tsum[$i] = $tsum[$i] + array_sum(array_column($matrix, $i)); |
| 90 | 90 | } |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | 'count' => 1 |
| 127 | 127 | ]; |
| 128 | 128 | } else { |
| 129 | - $result[$item['user_id']]['count'] ++; |
|
| 129 | + $result[$item['user_id']]['count']++; |
|
| 130 | 130 | } |
| 131 | 131 | } |
| 132 | 132 | |
@@ -187,9 +187,9 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | return $this->render( |
| 189 | 189 | 'backend/support/searchedCaches.html.twig', [ |
| 190 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 191 | - 'foundCaches' => $fetchedCaches |
|
| 192 | - ] |
|
| 190 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 191 | + 'foundCaches' => $fetchedCaches |
|
| 192 | + ] |
|
| 193 | 193 | ); |
| 194 | 194 | } |
| 195 | 195 | |
@@ -211,9 +211,9 @@ discard block |
||
| 211 | 211 | |
| 212 | 212 | return $this->render( |
| 213 | 213 | 'backend/support/reportedCaches.html.twig', [ |
| 214 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 215 | - 'reportedCaches_by_id' => $fetchedReports |
|
| 216 | - ] |
|
| 214 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 215 | + 'reportedCaches_by_id' => $fetchedReports |
|
| 216 | + ] |
|
| 217 | 217 | ); |
| 218 | 218 | } |
| 219 | 219 | |
@@ -234,10 +234,10 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | return $this->render( |
| 236 | 236 | 'backend/support/bonusCaches.html.twig', [ |
| 237 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 238 | - 'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(), |
|
| 239 | - 'bonusCaches_by_id' => $fetchedBonuscaches |
|
| 240 | - ] |
|
| 237 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 238 | + 'supportAssignBonusCacheForm' => $formAssignBonusCache->createView(), |
|
| 239 | + 'bonusCaches_by_id' => $fetchedBonuscaches |
|
| 240 | + ] |
|
| 241 | 241 | ); |
| 242 | 242 | } |
| 243 | 243 | |
@@ -260,10 +260,10 @@ discard block |
||
| 260 | 260 | |
| 261 | 261 | return $this->render( |
| 262 | 262 | 'backend/support/bonusCachesAssignment.html.twig', [ |
| 263 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 264 | - 'bonus_Cache' => $wpID, |
|
| 265 | - 'caches_by_owner' => $fetchedOwnerCaches |
|
| 266 | - ] |
|
| 263 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 264 | + 'bonus_Cache' => $wpID, |
|
| 265 | + 'caches_by_owner' => $fetchedOwnerCaches |
|
| 266 | + ] |
|
| 267 | 267 | ); |
| 268 | 268 | } |
| 269 | 269 | |
@@ -290,10 +290,10 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | return $this->render( |
| 292 | 292 | 'backend/support/bonusCachesAssignment.html.twig', [ |
| 293 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 294 | - 'bonus_Cache' => $toBonusCache, |
|
| 295 | - 'caches_by_owner' => $fetchedOwnerCaches |
|
| 296 | - ] |
|
| 293 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 294 | + 'bonus_Cache' => $toBonusCache, |
|
| 295 | + 'caches_by_owner' => $fetchedOwnerCaches |
|
| 296 | + ] |
|
| 297 | 297 | ); |
| 298 | 298 | } |
| 299 | 299 | |
@@ -402,10 +402,10 @@ discard block |
||
| 402 | 402 | |
| 403 | 403 | return $this->render( |
| 404 | 404 | 'backend/support/databaseQueries.html.twig', [ |
| 405 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 406 | - 'SQLFlexForm' => $formSQLFlex->createView(), |
|
| 407 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
| 408 | - ] |
|
| 405 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 406 | + 'SQLFlexForm' => $formSQLFlex->createView(), |
|
| 407 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
| 408 | + ] |
|
| 409 | 409 | ); |
| 410 | 410 | } |
| 411 | 411 | |
@@ -541,16 +541,16 @@ discard block |
||
| 541 | 541 | |
| 542 | 542 | return $this->render( |
| 543 | 543 | 'backend/support/occ.html.twig', [ |
| 544 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 545 | - 'supportCommentFormUser' => $formCommentUser->createView(), |
|
| 546 | - 'supportCommentFormCache' => $formCommentCache->createView(), |
|
| 547 | - 'occ_cache_data' => $fetchedCacheData, |
|
| 548 | - 'occ_cache_comments' => $fetchedCacheComments, |
|
| 549 | - 'occ_cache_infos' => $fetchedCacheInfos, |
|
| 550 | - 'occ_user_data' => $fetchedUserData, |
|
| 551 | - 'occ_user_comments' => $fetchedUserComments, |
|
| 552 | - 'occ_user_relations' => $fetchedUserRelations |
|
| 553 | - ] |
|
| 544 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 545 | + 'supportCommentFormUser' => $formCommentUser->createView(), |
|
| 546 | + 'supportCommentFormCache' => $formCommentCache->createView(), |
|
| 547 | + 'occ_cache_data' => $fetchedCacheData, |
|
| 548 | + 'occ_cache_comments' => $fetchedCacheComments, |
|
| 549 | + 'occ_cache_infos' => $fetchedCacheInfos, |
|
| 550 | + 'occ_user_data' => $fetchedUserData, |
|
| 551 | + 'occ_user_comments' => $fetchedUserComments, |
|
| 552 | + 'occ_user_relations' => $fetchedUserRelations |
|
| 553 | + ] |
|
| 554 | 554 | ); |
| 555 | 555 | } |
| 556 | 556 | |
@@ -684,10 +684,10 @@ discard block |
||
| 684 | 684 | |
| 685 | 685 | return $this->render( |
| 686 | 686 | 'backend/support/userDetails.html.twig', [ |
| 687 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 688 | - 'supportUserAccountActions' => $formActions->createView(), |
|
| 689 | - 'user_account_details' => $fetchedUserDetails |
|
| 690 | - ] |
|
| 687 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 688 | + 'supportUserAccountActions' => $formActions->createView(), |
|
| 689 | + 'user_account_details' => $fetchedUserDetails |
|
| 690 | + ] |
|
| 691 | 691 | ); |
| 692 | 692 | } |
| 693 | 693 | |
@@ -786,9 +786,9 @@ discard block |
||
| 786 | 786 | |
| 787 | 787 | return $this->render( |
| 788 | 788 | 'backend/support/databaseQueries.html.twig', [ |
| 789 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 790 | - 'suppSQLquery1' => $qb->execute()->fetchAllAssociative() |
|
| 791 | - ] |
|
| 789 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 790 | + 'suppSQLquery1' => $qb->execute()->fetchAllAssociative() |
|
| 791 | + ] |
|
| 792 | 792 | ); |
| 793 | 793 | } |
| 794 | 794 | |
@@ -815,9 +815,9 @@ discard block |
||
| 815 | 815 | |
| 816 | 816 | return $this->render( |
| 817 | 817 | 'backend/support/databaseQueries.html.twig', [ |
| 818 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 819 | - 'suppSQLquery2' => $qb->execute()->fetchAllAssociative() |
|
| 820 | - ] |
|
| 818 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 819 | + 'suppSQLquery2' => $qb->execute()->fetchAllAssociative() |
|
| 820 | + ] |
|
| 821 | 821 | ); |
| 822 | 822 | } |
| 823 | 823 | |
@@ -851,9 +851,9 @@ discard block |
||
| 851 | 851 | |
| 852 | 852 | return $this->render( |
| 853 | 853 | 'backend/support/databaseQueries.html.twig', [ |
| 854 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 855 | - 'suppSQLquery4' => $qb->execute()->fetchAllAssociative() |
|
| 856 | - ] |
|
| 854 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 855 | + 'suppSQLquery4' => $qb->execute()->fetchAllAssociative() |
|
| 856 | + ] |
|
| 857 | 857 | ); |
| 858 | 858 | } |
| 859 | 859 | |
@@ -872,9 +872,9 @@ discard block |
||
| 872 | 872 | |
| 873 | 873 | return $this->render( |
| 874 | 874 | 'backend/support/databaseQueries.html.twig', [ |
| 875 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 876 | - 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
| 877 | - ] |
|
| 875 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 876 | + 'suppSQLquery5' => $this->supportUserCommentsRepository->fetchAll() |
|
| 877 | + ] |
|
| 878 | 878 | ); |
| 879 | 879 | } |
| 880 | 880 | |
@@ -919,9 +919,9 @@ discard block |
||
| 919 | 919 | |
| 920 | 920 | return $this->render( |
| 921 | 921 | 'backend/support/databaseQueries.html.twig', [ |
| 922 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 923 | - 'suppSQLquery6' => $qb_caches_list |
|
| 924 | - ] |
|
| 922 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 923 | + 'suppSQLquery6' => $qb_caches_list |
|
| 924 | + ] |
|
| 925 | 925 | ); |
| 926 | 926 | } |
| 927 | 927 | |
@@ -1037,15 +1037,15 @@ discard block |
||
| 1037 | 1037 | |
| 1038 | 1038 | return $this->render( |
| 1039 | 1039 | 'backend/support/occ_gpx_import.html.twig', [ |
| 1040 | - 'supportCachesForm' => $formSearch->createView(), |
|
| 1041 | - 'supportUploadGPXForm' => $formUpload->createView(), |
|
| 1042 | - 'amountProcessedCaches' => $amountProcessedCaches, |
|
| 1043 | - 'amountAssignedCaches' => $amountAssignedCaches, |
|
| 1044 | - 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
| 1045 | - 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
| 1046 | - 'fetchedListingInfos' => $fetchedListingInfos, |
|
| 1047 | - 'differencesDetected' => $differencesDetected |
|
| 1048 | - ] |
|
| 1040 | + 'supportCachesForm' => $formSearch->createView(), |
|
| 1041 | + 'supportUploadGPXForm' => $formUpload->createView(), |
|
| 1042 | + 'amountProcessedCaches' => $amountProcessedCaches, |
|
| 1043 | + 'amountAssignedCaches' => $amountAssignedCaches, |
|
| 1044 | + 'amountUpdatedCaches' => $amountUpdatedCaches, |
|
| 1045 | + 'listOfAmbiguousCaches' => $listOfAmbiguousCaches, |
|
| 1046 | + 'fetchedListingInfos' => $fetchedListingInfos, |
|
| 1047 | + 'differencesDetected' => $differencesDetected |
|
| 1048 | + ] |
|
| 1049 | 1049 | ); |
| 1050 | 1050 | } |
| 1051 | 1051 | |
@@ -1209,11 +1209,11 @@ discard block |
||
| 1209 | 1209 | ] as $checkItem) { |
| 1210 | 1210 | if ($wpt[$checkItem] != $fetchedExistingSupportListingInfoArray[$checkItem]) { |
| 1211 | 1211 | $newComment .= $checkItem |
| 1212 | - . ' changed from ' |
|
| 1213 | - . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
| 1214 | - . ' to ' |
|
| 1215 | - . $wpt[$checkItem] |
|
| 1216 | - . PHP_EOL; |
|
| 1212 | + . ' changed from ' |
|
| 1213 | + . $fetchedExistingSupportListingInfoArray[$checkItem] |
|
| 1214 | + . ' to ' |
|
| 1215 | + . $wpt[$checkItem] |
|
| 1216 | + . PHP_EOL; |
|
| 1217 | 1217 | } |
| 1218 | 1218 | } |
| 1219 | 1219 | |
@@ -151,7 +151,7 @@ |
||
| 151 | 151 | $inputData = $form->getData(); |
| 152 | 152 | $userId = $inputData['content_user_searchfield']; |
| 153 | 153 | |
| 154 | - $fetchedUser = $this->userRepository->fetchOneById((int) $userId); |
|
| 154 | + $fetchedUser = $this->userRepository->fetchOneById((int)$userId); |
|
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | return $this->render( |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | $databaseArray |
| 157 | 157 | ); |
| 158 | 158 | |
| 159 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 159 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 160 | 160 | |
| 161 | 161 | return $entity; |
| 162 | 162 | } |
@@ -272,9 +272,9 @@ discard block |
||
| 272 | 272 | public function getEntityFromDatabaseArray(array $data) |
| 273 | 273 | : UserRolesEntity { |
| 274 | 274 | $entity = new UserRolesEntity(); |
| 275 | - $entity->id = (int) $data['id']; |
|
| 276 | - $entity->userId = (string) $data['user_id']; |
|
| 277 | - $entity->roleId = (string) $data['role_id']; |
|
| 275 | + $entity->id = (int)$data['id']; |
|
| 276 | + $entity->userId = (string)$data['user_id']; |
|
| 277 | + $entity->roleId = (string)$data['role_id']; |
|
| 278 | 278 | |
| 279 | 279 | return $entity; |
| 280 | 280 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $databaseArray |
| 168 | 168 | ); |
| 169 | 169 | |
| 170 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
| 170 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
| 171 | 171 | |
| 172 | 172 | return $entity; |
| 173 | 173 | } |
@@ -246,11 +246,11 @@ discard block |
||
| 246 | 246 | public function getEntityFromDatabaseArray(array $data) |
| 247 | 247 | : GeoCacheStatusModifiedEntity { |
| 248 | 248 | $entity = new GeoCacheStatusModifiedEntity(); |
| 249 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 249 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 250 | 250 | $entity->dateModified = new DateTime($data['date_modified']); |
| 251 | - $entity->oldState = (int) $data['old_state']; |
|
| 252 | - $entity->newState = (int) $data['new_state']; |
|
| 253 | - $entity->userId = (int) $data['user_id']; |
|
| 251 | + $entity->oldState = (int)$data['old_state']; |
|
| 252 | + $entity->newState = (int)$data['new_state']; |
|
| 253 | + $entity->userId = (int)$data['user_id']; |
|
| 254 | 254 | $entity->user = $this->userRepository->fetchOneById($entity->userId); |
| 255 | 255 | $entity->cacheStatusOld = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->oldState]); |
| 256 | 256 | $entity->cacheStatusNew = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->newState]); |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $databaseArray |
| 147 | 147 | ); |
| 148 | 148 | |
| 149 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 149 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 150 | 150 | |
| 151 | 151 | return $entity; |
| 152 | 152 | } |
@@ -226,14 +226,14 @@ discard block |
||
| 226 | 226 | public function getEntityFromDatabaseArray(array $data) |
| 227 | 227 | : GeoCacheStatusEntity { |
| 228 | 228 | $entity = new GeoCacheStatusEntity(); |
| 229 | - $entity->id = (int) $data['id']; |
|
| 230 | - $entity->name = (string) $data['name']; |
|
| 231 | - $entity->transId = (int) $data['trans_id']; |
|
| 232 | - $entity->de = (string) $data['de']; |
|
| 233 | - $entity->en = (string) $data['en']; |
|
| 234 | - $entity->allowUserView = (int) $data['allow_user_view']; |
|
| 235 | - $entity->allowOwnerEditStatus = (int) $data['allow_owner_edit_status']; |
|
| 236 | - $entity->allowUserLog = (int) $data['allow_user_log']; |
|
| 229 | + $entity->id = (int)$data['id']; |
|
| 230 | + $entity->name = (string)$data['name']; |
|
| 231 | + $entity->transId = (int)$data['trans_id']; |
|
| 232 | + $entity->de = (string)$data['de']; |
|
| 233 | + $entity->en = (string)$data['en']; |
|
| 234 | + $entity->allowUserView = (int)$data['allow_user_view']; |
|
| 235 | + $entity->allowOwnerEditStatus = (int)$data['allow_owner_edit_status']; |
|
| 236 | + $entity->allowUserLog = (int)$data['allow_user_log']; |
|
| 237 | 237 | |
| 238 | 238 | return $entity; |
| 239 | 239 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $databaseArray |
| 156 | 156 | ); |
| 157 | 157 | |
| 158 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 158 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 159 | 159 | |
| 160 | 160 | return $entity; |
| 161 | 161 | } |
@@ -252,30 +252,30 @@ discard block |
||
| 252 | 252 | public function getEntityFromDatabaseArray(array $data) |
| 253 | 253 | : GeoCacheLogsArchivedEntity { |
| 254 | 254 | $entity = new GeoCacheLogsArchivedEntity(); |
| 255 | - $entity->id = (int) $data['id']; |
|
| 256 | - $entity->uuid = (string) $data['uuid']; |
|
| 257 | - $entity->node = (int) $data['node']; |
|
| 255 | + $entity->id = (int)$data['id']; |
|
| 256 | + $entity->uuid = (string)$data['uuid']; |
|
| 257 | + $entity->node = (int)$data['node']; |
|
| 258 | 258 | $entity->dateCreated = new DateTime($data['date_created']); |
| 259 | 259 | $entity->entryLastModified = new DateTime($data['entry_last_modified']); |
| 260 | 260 | $entity->lastModified = date('Y-m-d H:i:s'); |
| 261 | - $entity->okapiSyncbase = (string) $data['okapi_syncbase']; |
|
| 261 | + $entity->okapiSyncbase = (string)$data['okapi_syncbase']; |
|
| 262 | 262 | $entity->logLastModified = new DateTime($data['log_last_modified']); |
| 263 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 264 | - $entity->userId = (int) $data['user_id']; |
|
| 265 | - $entity->type = (int) $data['type']; |
|
| 266 | - $entity->ocTeamComment = (int) $data['oc_team_comment']; |
|
| 263 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 264 | + $entity->userId = (int)$data['user_id']; |
|
| 265 | + $entity->type = (int)$data['type']; |
|
| 266 | + $entity->ocTeamComment = (int)$data['oc_team_comment']; |
|
| 267 | 267 | $entity->date = new DateTime($data['date']); |
| 268 | 268 | $entity->orderDate = new DateTime($data['order_date']); |
| 269 | - $entity->needsMaintenance = (int) $data['needs_maintenance']; |
|
| 270 | - $entity->listingOutdated = (int) $data['listing_outdated']; |
|
| 271 | - $entity->text = (string) $data['text']; |
|
| 272 | - $entity->textHtml = (int) $data['text_html']; |
|
| 273 | - $entity->textHtmledit = (int) $data['text_htmledit']; |
|
| 274 | - $entity->ownerNotified = (int) $data['owner_notified']; |
|
| 269 | + $entity->needsMaintenance = (int)$data['needs_maintenance']; |
|
| 270 | + $entity->listingOutdated = (int)$data['listing_outdated']; |
|
| 271 | + $entity->text = (string)$data['text']; |
|
| 272 | + $entity->textHtml = (int)$data['text_html']; |
|
| 273 | + $entity->textHtmledit = (int)$data['text_htmledit']; |
|
| 274 | + $entity->ownerNotified = (int)$data['owner_notified']; |
|
| 275 | 275 | $entity->picture = $data['picture']; |
| 276 | 276 | $entity->deletionDate = new DateTime($data['deletion_date']); |
| 277 | - $entity->deletedBy = (int) $data['deleted_by']; |
|
| 278 | - $entity->restoredBy = (int) $data['restored_by']; |
|
| 277 | + $entity->deletedBy = (int)$data['deleted_by']; |
|
| 278 | + $entity->restoredBy = (int)$data['restored_by']; |
|
| 279 | 279 | |
| 280 | 280 | return $entity; |
| 281 | 281 | } |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $databaseArray |
| 147 | 147 | ); |
| 148 | 148 | |
| 149 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 149 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 150 | 150 | |
| 151 | 151 | return $entity; |
| 152 | 152 | } |
@@ -224,12 +224,12 @@ discard block |
||
| 224 | 224 | public function getEntityFromDatabaseArray(array $data) |
| 225 | 225 | : GeoCacheSizeEntity { |
| 226 | 226 | $entity = new GeoCacheSizeEntity(); |
| 227 | - $entity->id = (int) $data['id']; |
|
| 228 | - $entity->name = (string) $data['name']; |
|
| 229 | - $entity->transId = (int) $data['trans_id']; |
|
| 230 | - $entity->ordinal = (int) $data['ordinal']; |
|
| 231 | - $entity->de = (string) $data['de']; |
|
| 232 | - $entity->en = (string) $data['en']; |
|
| 227 | + $entity->id = (int)$data['id']; |
|
| 228 | + $entity->name = (string)$data['name']; |
|
| 229 | + $entity->transId = (int)$data['trans_id']; |
|
| 230 | + $entity->ordinal = (int)$data['ordinal']; |
|
| 231 | + $entity->de = (string)$data['de']; |
|
| 232 | + $entity->en = (string)$data['en']; |
|
| 233 | 233 | |
| 234 | 234 | return $entity; |
| 235 | 235 | } |