@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; |
| 6 | 6 | |
| 7 | -return static function (RoutingConfigurator $routingConfigurator): void { |
|
| 7 | +return static function(RoutingConfigurator $routingConfigurator): void { |
|
| 8 | 8 | $routingConfigurator->import('../../src/Controller/App', 'annotation') |
| 9 | 9 | ->namePrefix('app_'); |
| 10 | 10 | |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | |
| 105 | 105 | $arr = preg_split('/\s+/', $searchtext); |
| 106 | 106 | |
| 107 | - $this->coordinatesRepository->setLatLon((float) $arr[0], (float) $arr[1]); |
|
| 107 | + $this->coordinatesRepository->setLatLon((float)$arr[0], (float)$arr[1]); |
|
| 108 | 108 | |
| 109 | 109 | return $this->coordinatesRepository->getAllCoordinatesFormatsAsArray(); |
| 110 | 110 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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; |
@@ -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 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $databaseArray |
| 173 | 173 | ); |
| 174 | 174 | |
| 175 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 175 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 176 | 176 | |
| 177 | 177 | return $entity; |
| 178 | 178 | } |
@@ -268,8 +268,8 @@ discard block |
||
| 268 | 268 | public function getEntityFromDatabaseArray(array $data) |
| 269 | 269 | : SecurityRolesEntity { |
| 270 | 270 | $entity = new SecurityRolesEntity(); |
| 271 | - $entity->id = (int) $data['id']; |
|
| 272 | - $entity->role = (string) $data['role']; |
|
| 271 | + $entity->id = (int)$data['id']; |
|
| 272 | + $entity->role = (string)$data['role']; |
|
| 273 | 273 | |
| 274 | 274 | return $entity; |
| 275 | 275 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | $databaseArray |
| 154 | 154 | ); |
| 155 | 155 | |
| 156 | - $entity->userId = (int) $this->connection->lastInsertId(); |
|
| 156 | + $entity->userId = (int)$this->connection->lastInsertId(); |
|
| 157 | 157 | |
| 158 | 158 | return $entity; |
| 159 | 159 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | ['user_id' => $entity->userId] |
| 182 | 182 | ); |
| 183 | 183 | |
| 184 | - $entity->userId = (int) $this->connection->lastInsertId(); |
|
| 184 | + $entity->userId = (int)$this->connection->lastInsertId(); |
|
| 185 | 185 | |
| 186 | 186 | return $entity; |
| 187 | 187 | } |
@@ -261,16 +261,16 @@ discard block |
||
| 261 | 261 | public function getEntityFromDatabaseArray(array $data) |
| 262 | 262 | : UserEntity { |
| 263 | 263 | $entity = new UserEntity(); |
| 264 | - $entity->userId = (int) $data['user_id']; |
|
| 265 | - $entity->dateCreated = (string) $data['date_created']; |
|
| 266 | - $entity->lastModified = (string) $data['last_modified']; |
|
| 264 | + $entity->userId = (int)$data['user_id']; |
|
| 265 | + $entity->dateCreated = (string)$data['date_created']; |
|
| 266 | + $entity->lastModified = (string)$data['last_modified']; |
|
| 267 | 267 | $entity->username = $data['username']; |
| 268 | 268 | $entity->password = $data['password']; |
| 269 | 269 | $entity->email = $data['email']; |
| 270 | - $entity->emailProblems = (bool) $data['email_problems']; |
|
| 271 | - $entity->latitude = (double) $data['latitude']; |
|
| 272 | - $entity->longitude = (double) $data['longitude']; |
|
| 273 | - $entity->isActive = (bool) $data['is_active_flag']; |
|
| 270 | + $entity->emailProblems = (bool)$data['email_problems']; |
|
| 271 | + $entity->latitude = (double)$data['latitude']; |
|
| 272 | + $entity->longitude = (double)$data['longitude']; |
|
| 273 | + $entity->isActive = (bool)$data['is_active_flag']; |
|
| 274 | 274 | $entity->firstname = $data['first_name']; |
| 275 | 275 | $entity->lastname = $data['last_name']; |
| 276 | 276 | $entity->country = $data['country']; |