@@ -19,19 +19,19 @@ |
||
19 | 19 | $builder |
20 | 20 | ->add( |
21 | 21 | 'content_support_searchfield', null, [ |
22 | - 'attr' => [ |
|
23 | - 'placeholder' => 'OC / GC / Name / Owner / %%%', |
|
24 | - 'autofocus' => 'autofocus', |
|
25 | - 'size' => '10%', |
|
26 | - 'minlength' => '3', |
|
27 | - 'maxlength' => '100', |
|
28 | - 'style' => 'width: 250px;' |
|
29 | - ], |
|
30 | - 'required' => true, |
|
31 | - 'disabled' => false, |
|
32 | - 'label' => false, |
|
33 | - 'trim' => true |
|
34 | - ] |
|
22 | + 'attr' => [ |
|
23 | + 'placeholder' => 'OC / GC / Name / Owner / %%%', |
|
24 | + 'autofocus' => 'autofocus', |
|
25 | + 'size' => '10%', |
|
26 | + 'minlength' => '3', |
|
27 | + 'maxlength' => '100', |
|
28 | + 'style' => 'width: 250px;' |
|
29 | + ], |
|
30 | + 'required' => true, |
|
31 | + 'disabled' => false, |
|
32 | + 'label' => false, |
|
33 | + 'trim' => true |
|
34 | + ] |
|
35 | 35 | ) |
36 | 36 | ->add( |
37 | 37 | 'search_All', SubmitType::class, [ |
@@ -90,9 +90,9 @@ discard block |
||
90 | 90 | |
91 | 91 | return $this->render( |
92 | 92 | 'backend/support/searchedCaches.html.twig', [ |
93 | - 'supportCachesForm' => $formSearch->createView(), |
|
94 | - 'foundCaches' => $fetchedCaches |
|
95 | - ] |
|
93 | + 'supportCachesForm' => $formSearch->createView(), |
|
94 | + 'foundCaches' => $fetchedCaches |
|
95 | + ] |
|
96 | 96 | ); |
97 | 97 | } |
98 | 98 | |
@@ -110,9 +110,9 @@ discard block |
||
110 | 110 | |
111 | 111 | return $this->render( |
112 | 112 | 'backend/support/reportedCaches.html.twig', [ |
113 | - 'supportCachesForm' => $formSearch->createView(), |
|
114 | - 'reportedCaches_by_id' => $fetchedReports |
|
115 | - ] |
|
113 | + 'supportCachesForm' => $formSearch->createView(), |
|
114 | + 'reportedCaches_by_id' => $fetchedReports |
|
115 | + ] |
|
116 | 116 | ); |
117 | 117 | } |
118 | 118 | |
@@ -150,10 +150,10 @@ discard block |
||
150 | 150 | |
151 | 151 | return $this->render( |
152 | 152 | 'backend/support/databaseQueries.html.twig', [ |
153 | - 'supportCachesForm' => $formSearch->createView(), |
|
154 | - 'SQLFlexForm' => $form->createView(), |
|
155 | - 'suppSQLqueryFlex' => $fetchedInformation |
|
156 | - ] |
|
153 | + 'supportCachesForm' => $formSearch->createView(), |
|
154 | + 'SQLFlexForm' => $form->createView(), |
|
155 | + 'suppSQLqueryFlex' => $fetchedInformation |
|
156 | + ] |
|
157 | 157 | ); |
158 | 158 | } |
159 | 159 | |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | |
257 | 257 | return $this->render( |
258 | 258 | 'backend/support/databaseQueries.html.twig', [ |
259 | - 'supportCachesForm' => $formSearch->createView(), |
|
260 | - 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
261 | - ] |
|
259 | + 'supportCachesForm' => $formSearch->createView(), |
|
260 | + 'suppSQLquery1' => $qb->execute()->fetchAll() |
|
261 | + ] |
|
262 | 262 | ); |
263 | 263 | } |
264 | 264 | |
@@ -282,9 +282,9 @@ discard block |
||
282 | 282 | |
283 | 283 | return $this->render( |
284 | 284 | 'backend/support/databaseQueries.html.twig', [ |
285 | - 'supportCachesForm' => $formSearch->createView(), |
|
286 | - 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
287 | - ] |
|
285 | + 'supportCachesForm' => $formSearch->createView(), |
|
286 | + 'suppSQLquery2' => $qb->execute()->fetchAll() |
|
287 | + ] |
|
288 | 288 | ); |
289 | 289 | } |
290 | 290 | |
@@ -310,9 +310,9 @@ discard block |
||
310 | 310 | |
311 | 311 | return $this->render( |
312 | 312 | 'backend/support/databaseQueries.html.twig', [ |
313 | - 'supportCachesForm' => $formSearch->createView(), |
|
314 | - 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
315 | - ] |
|
313 | + 'supportCachesForm' => $formSearch->createView(), |
|
314 | + 'suppSQLquery4' => $qb->execute()->fetchAll() |
|
315 | + ] |
|
316 | 316 | ); |
317 | 317 | } |
318 | 318 |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']); |
139 | 139 | |
140 | 140 | $countFetched = count($fetchedInformation); |
141 | - for ($i = 0; $i < $countFetched; $i ++) { |
|
141 | + for ($i = 0; $i < $countFetched; $i++) { |
|
142 | 142 | if (array_key_exists('password', $fetchedInformation[$i])) { |
143 | 143 | $fetchedInformation[$i]['password'] = '-'; |
144 | 144 | } |
@@ -31,37 +31,37 @@ |
||
31 | 31 | ) |
32 | 32 | ->add( |
33 | 33 | 'content_WHAT', null, [ |
34 | - 'required' => true, |
|
35 | - 'data' => '*', |
|
36 | - 'attr' => [ |
|
37 | - 'style' => 'width: 180px;' |
|
38 | - ], |
|
39 | - 'disabled' => false, |
|
40 | - 'label' => false, |
|
41 | - 'trim' => true |
|
42 | - ] |
|
34 | + 'required' => true, |
|
35 | + 'data' => '*', |
|
36 | + 'attr' => [ |
|
37 | + 'style' => 'width: 180px;' |
|
38 | + ], |
|
39 | + 'disabled' => false, |
|
40 | + 'label' => false, |
|
41 | + 'trim' => true |
|
42 | + ] |
|
43 | 43 | ) |
44 | 44 | ->add( |
45 | 45 | 'content_FROM', ChoiceType::class, [ |
46 | - 'choices' => ['FROM' => 'FROM'], |
|
47 | - 'attr' => [ |
|
48 | - 'style' => 'width: 180px;' |
|
49 | - ], |
|
50 | - 'disabled' => true, |
|
51 | - 'label' => false, |
|
52 | - 'trim' => true |
|
53 | - ] |
|
46 | + 'choices' => ['FROM' => 'FROM'], |
|
47 | + 'attr' => [ |
|
48 | + 'style' => 'width: 180px;' |
|
49 | + ], |
|
50 | + 'disabled' => true, |
|
51 | + 'label' => false, |
|
52 | + 'trim' => true |
|
53 | + ] |
|
54 | 54 | ) |
55 | 55 | ->add( |
56 | 56 | 'content_TABLE', ChoiceType::class, [ |
57 | - 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
58 | - 'attr' => [ |
|
59 | - 'style' => 'width: 180px;' |
|
60 | - ], |
|
61 | - 'disabled' => false, |
|
62 | - 'label' => false, |
|
63 | - 'trim' => true |
|
64 | - ] |
|
57 | + 'choices' => ['caches' => 'caches', 'user' => 'user'], |
|
58 | + 'attr' => [ |
|
59 | + 'style' => 'width: 180px;' |
|
60 | + ], |
|
61 | + 'disabled' => false, |
|
62 | + 'label' => false, |
|
63 | + 'trim' => true |
|
64 | + ] |
|
65 | 65 | ) |
66 | 66 | ->add( |
67 | 67 | 'Suchen', SubmitType::class, [ |
@@ -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 | } |
@@ -208,30 +208,30 @@ discard block |
||
208 | 208 | public function getEntityFromDatabaseArray(array $data) |
209 | 209 | { |
210 | 210 | $entity = new GeoCacheLogsArchivedEntity(); |
211 | - $entity->id = (int) $data['id']; |
|
212 | - $entity->uuid = (string) $data['uuid']; |
|
213 | - $entity->node = (int) $data['node']; |
|
211 | + $entity->id = (int)$data['id']; |
|
212 | + $entity->uuid = (string)$data['uuid']; |
|
213 | + $entity->node = (int)$data['node']; |
|
214 | 214 | $entity->dateCreated = new DateTime($data['date_created']); |
215 | 215 | $entity->entryLastModified = new DateTime($data['entry_last_modified']); |
216 | 216 | $entity->lastModified = new DateTime($data['last_modified']); |
217 | - $entity->okapiSyncbase = (string) $data['okapi_syncbase']; |
|
217 | + $entity->okapiSyncbase = (string)$data['okapi_syncbase']; |
|
218 | 218 | $entity->logLastModified = new DateTime($data['log_last_modified']); |
219 | - $entity->cacheId = (int) $data['cache_id']; |
|
220 | - $entity->userId = (int) $data['user_id']; |
|
221 | - $entity->type = (int) $data['type']; |
|
222 | - $entity->ocTeamComment = (int) $data['oc_team_comment']; |
|
219 | + $entity->cacheId = (int)$data['cache_id']; |
|
220 | + $entity->userId = (int)$data['user_id']; |
|
221 | + $entity->type = (int)$data['type']; |
|
222 | + $entity->ocTeamComment = (int)$data['oc_team_comment']; |
|
223 | 223 | $entity->date = new DateTime($data['date']); |
224 | 224 | $entity->orderDate = new DateTime($data['order_date']); |
225 | - $entity->needsMaintenance = (int) $data['needs_maintenance']; |
|
226 | - $entity->listingOutdated = (int) $data['listing_outdated']; |
|
227 | - $entity->text = (string) $data['text']; |
|
228 | - $entity->textHtml = (int) $data['text_html']; |
|
229 | - $entity->textHtmledit = (int) $data['text_htmledit']; |
|
230 | - $entity->ownerNotified = (int) $data['owner_notified']; |
|
225 | + $entity->needsMaintenance = (int)$data['needs_maintenance']; |
|
226 | + $entity->listingOutdated = (int)$data['listing_outdated']; |
|
227 | + $entity->text = (string)$data['text']; |
|
228 | + $entity->textHtml = (int)$data['text_html']; |
|
229 | + $entity->textHtmledit = (int)$data['text_htmledit']; |
|
230 | + $entity->ownerNotified = (int)$data['owner_notified']; |
|
231 | 231 | $entity->picture = $data['picture']; |
232 | 232 | $entity->deletionDate = new DateTime($data['deletion_date']); |
233 | - $entity->deletedBy = (int) $data['deleted_by']; |
|
234 | - $entity->restoredBy = (int) $data['restored_by']; |
|
233 | + $entity->deletedBy = (int)$data['deleted_by']; |
|
234 | + $entity->restoredBy = (int)$data['restored_by']; |
|
235 | 235 | |
236 | 236 | return $entity; |
237 | 237 | } |
@@ -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 | } |