@@ -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 | } |
@@ -228,11 +228,11 @@ discard block |
||
228 | 228 | public function getEntityFromDatabaseArray(array $data) |
229 | 229 | { |
230 | 230 | $entity = new GeoCacheAdoptionsEntity(); |
231 | - $entity->id = (int) $data['id']; |
|
232 | - $entity->cacheId = (int) $data['cache_id']; |
|
231 | + $entity->id = (int)$data['id']; |
|
232 | + $entity->cacheId = (int)$data['cache_id']; |
|
233 | 233 | $entity->date = new DateTime($data['date']); |
234 | - $entity->fromUserId = (int) $data['from_user_id']; |
|
235 | - $entity->toUserId = (int) $data['to_user_id']; |
|
234 | + $entity->fromUserId = (int)$data['from_user_id']; |
|
235 | + $entity->toUserId = (int)$data['to_user_id']; |
|
236 | 236 | $entity->fromUser = $this->userRepository->fetchOneById($entity->fromUserId); |
237 | 237 | $entity->toUser = $this->userRepository->fetchOneById($entity->toUserId); |
238 | 238 |
@@ -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 | } |
@@ -224,12 +224,12 @@ discard block |
||
224 | 224 | public function getEntityFromDatabaseArray(array $data) |
225 | 225 | { |
226 | 226 | $entity = new GeoCacheCoordinatesEntity(); |
227 | - $entity->id = (int) $data['id']; |
|
227 | + $entity->id = (int)$data['id']; |
|
228 | 228 | $entity->dateCreated = new DateTime($data['date_created']); |
229 | - $entity->cacheId = (int) $data['cache_id']; |
|
229 | + $entity->cacheId = (int)$data['cache_id']; |
|
230 | 230 | $entity->longitude = $data['longitude']; |
231 | 231 | $entity->latitude = $data['latitude']; |
232 | - $entity->restoredBy = (int) $data['restored_by']; |
|
232 | + $entity->restoredBy = (int)$data['restored_by']; |
|
233 | 233 | if ($entity->restoredBy != 0) $entity->user = $this->userRepository->fetchOneById($entity->restoredBy); |
234 | 234 | |
235 | 235 | return $entity; |
@@ -230,7 +230,9 @@ |
||
230 | 230 | $entity->longitude = $data['longitude']; |
231 | 231 | $entity->latitude = $data['latitude']; |
232 | 232 | $entity->restoredBy = (int) $data['restored_by']; |
233 | - if ($entity->restoredBy != 0) $entity->user = $this->userRepository->fetchOneById($entity->restoredBy); |
|
233 | + if ($entity->restoredBy != 0) { |
|
234 | + $entity->user = $this->userRepository->fetchOneById($entity->restoredBy); |
|
235 | + } |
|
234 | 236 | |
235 | 237 | return $entity; |
236 | 238 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']); |
168 | 168 | |
169 | 169 | $countFetched = count($fetchedInformation); |
170 | - for ($i = 0; $i < $countFetched; $i ++) { |
|
170 | + for ($i = 0; $i < $countFetched; $i++) { |
|
171 | 171 | if (array_key_exists('password', $fetchedInformation[$i])) { |
172 | 172 | $fetchedInformation[$i]['password'] = '-'; |
173 | 173 | } |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | if ($form->isSubmitted() && $form->isValid()) { |
236 | 236 | $inputData = $form->getData(); |
237 | 237 | |
238 | - $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_repID']]); |
|
238 | + $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_repID']]); |
|
239 | 239 | $entity->comment = $inputData['support_admin_comment']; |
240 | 240 | |
241 | 241 | $this->cacheReportsRepository->update($entity); |
@@ -128,9 +128,9 @@ discard block |
||
128 | 128 | |
129 | 129 | return $this->render( |
130 | 130 | 'backend/support/searchedCaches.html.twig', [ |
131 | - 'supportCachesForm' => $formSearch->createView(), |
|
132 | - 'foundCaches' => $fetchedCaches |
|
133 | - ] |
|
131 | + 'supportCachesForm' => $formSearch->createView(), |
|
132 | + 'foundCaches' => $fetchedCaches |
|
133 | + ] |
|
134 | 134 | ); |
135 | 135 | } |
136 | 136 | |
@@ -149,9 +149,9 @@ discard block |
||
149 | 149 | |
150 | 150 | return $this->render( |
151 | 151 | 'backend/support/reportedCaches.html.twig', [ |
152 | - 'supportCachesForm' => $formSearch->createView(), |
|
153 | - 'reportedCaches_by_id' => $fetchedReports |
|
154 | - ] |
|
152 | + 'supportCachesForm' => $formSearch->createView(), |
|
153 | + 'reportedCaches_by_id' => $fetchedReports |
|
154 | + ] |
|
155 | 155 | ); |
156 | 156 | } |
157 | 157 | |
@@ -170,9 +170,9 @@ discard block |
||
170 | 170 | |
171 | 171 | return $this->render( |
172 | 172 | 'backend/support/bonusCaches.html.twig', [ |
173 | - 'supportCachesForm' => $formSearch->createView(), |
|
174 | - 'bonusCaches_by_id' => $fetchedBonuscaches |
|
175 | - ] |
|
173 | + 'supportCachesForm' => $formSearch->createView(), |
|
174 | + 'bonusCaches_by_id' => $fetchedBonuscaches |
|
175 | + ] |
|
176 | 176 | ); |
177 | 177 | } |
178 | 178 | |
@@ -213,10 +213,10 @@ discard block |
||
213 | 213 | |
214 | 214 | return $this->render( |
215 | 215 | 'backend/support/databaseQueries.html.twig', [ |
216 | - 'supportCachesForm' => $formSearch->createView(), |
|
217 | - 'SQLFlexForm' => $form->createView(), |
|
218 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
219 | - ] |
|
216 | + 'supportCachesForm' => $formSearch->createView(), |
|
217 | + 'SQLFlexForm' => $form->createView(), |
|
218 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
219 | + ] |
|
220 | 220 | ); |
221 | 221 | } |
222 | 222 | |
@@ -436,9 +436,9 @@ discard block |
||
436 | 436 | |
437 | 437 | return $this->render( |
438 | 438 | 'backend/support/databaseQueries.html.twig', [ |
439 | - 'supportCachesForm' => $formSearch->createView(), |
|
440 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
441 | - ] |
|
439 | + 'supportCachesForm' => $formSearch->createView(), |
|
440 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
441 | + ] |
|
442 | 442 | ); |
443 | 443 | } |
444 | 444 | |
@@ -462,9 +462,9 @@ discard block |
||
462 | 462 | |
463 | 463 | return $this->render( |
464 | 464 | 'backend/support/databaseQueries.html.twig', [ |
465 | - 'supportCachesForm' => $formSearch->createView(), |
|
466 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
467 | - ] |
|
465 | + 'supportCachesForm' => $formSearch->createView(), |
|
466 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
467 | + ] |
|
468 | 468 | ); |
469 | 469 | } |
470 | 470 | |
@@ -490,9 +490,9 @@ discard block |
||
490 | 490 | |
491 | 491 | return $this->render( |
492 | 492 | 'backend/support/databaseQueries.html.twig', [ |
493 | - 'supportCachesForm' => $formSearch->createView(), |
|
494 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
495 | - ] |
|
493 | + 'supportCachesForm' => $formSearch->createView(), |
|
494 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
495 | + ] |
|
496 | 496 | ); |
497 | 497 | } |
498 | 498 |
@@ -24,16 +24,16 @@ discard block |
||
24 | 24 | $builder |
25 | 25 | ->add( |
26 | 26 | 'support_admin_comment', TextareaType::class, [ |
27 | - 'attr' => [ |
|
28 | - 'maxlength' => '32000', |
|
29 | - 'overflow' => 'auto', |
|
30 | - 'rows' => '10', |
|
31 | - ], |
|
32 | - 'required' => false, |
|
33 | - 'disabled' => false, |
|
34 | - 'label' => false, |
|
35 | - 'trim' => true |
|
36 | - ] |
|
27 | + 'attr' => [ |
|
28 | + 'maxlength' => '32000', |
|
29 | + 'overflow' => 'auto', |
|
30 | + 'rows' => '10', |
|
31 | + ], |
|
32 | + 'required' => false, |
|
33 | + 'disabled' => false, |
|
34 | + 'label' => false, |
|
35 | + 'trim' => true |
|
36 | + ] |
|
37 | 37 | ) |
38 | 38 | ->add( |
39 | 39 | 'save_admin_comment', SubmitType::class, [ |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | ) |
44 | 44 | ->add( |
45 | 45 | 'hidden_repID', HiddenType::class, [ |
46 | - 'attr' => ['maxlength' => '10'], |
|
47 | - ] |
|
46 | + 'attr' => ['maxlength' => '10'], |
|
47 | + ] |
|
48 | 48 | ); |
49 | 49 | } |
50 | 50 | } |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $databaseArray |
161 | 161 | ); |
162 | 162 | |
163 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
163 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
164 | 164 | |
165 | 165 | return $entity; |
166 | 166 | } |
@@ -238,11 +238,11 @@ discard block |
||
238 | 238 | public function getEntityFromDatabaseArray(array $data) |
239 | 239 | { |
240 | 240 | $entity = new GeoCacheStatusModifiedEntity(); |
241 | - $entity->cacheId = (int) $data['cache_id']; |
|
241 | + $entity->cacheId = (int)$data['cache_id']; |
|
242 | 242 | $entity->dateModified = new DateTime($data['date_modified']); |
243 | - $entity->oldState = (int) $data['old_state']; |
|
244 | - $entity->newState = (int) $data['new_state']; |
|
245 | - $entity->userId = (int) $data['user_id']; |
|
243 | + $entity->oldState = (int)$data['old_state']; |
|
244 | + $entity->newState = (int)$data['new_state']; |
|
245 | + $entity->userId = (int)$data['user_id']; |
|
246 | 246 | $entity->user = $this->userRepository->fetchOneById($entity->userId); |
247 | 247 | $entity->cacheStatusOld = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->oldState]); |
248 | 248 | $entity->cacheStatusNew = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->newState]); |
@@ -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 | } |