@@ -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 | } |
@@ -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); |
@@ -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]); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | $databaseArray |
| 183 | 183 | ); |
| 184 | 184 | |
| 185 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 185 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 186 | 186 | |
| 187 | 187 | return $entity; |
| 188 | 188 | } |
@@ -266,16 +266,16 @@ discard block |
||
| 266 | 266 | { |
| 267 | 267 | |
| 268 | 268 | $entity = new GeoCacheReportsEntity(); |
| 269 | - $entity->id = (int) $data['id']; |
|
| 269 | + $entity->id = (int)$data['id']; |
|
| 270 | 270 | $entity->dateCreated = new DateTime($data['date_created']); |
| 271 | - $entity->cacheid = (int) $data['cacheid']; |
|
| 272 | - $entity->userid = (int) $data['userid']; |
|
| 273 | - $entity->reason = (int) $data['reason']; |
|
| 274 | - $entity->note = (string) $data['note']; |
|
| 275 | - $entity->status = (int) $data['status']; |
|
| 276 | - $entity->adminid = (int) $data['adminid']; |
|
| 277 | - $entity->lastmodified = (string) $data['lastmodified']; |
|
| 278 | - $entity->comment = (string) $data['comment']; |
|
| 271 | + $entity->cacheid = (int)$data['cacheid']; |
|
| 272 | + $entity->userid = (int)$data['userid']; |
|
| 273 | + $entity->reason = (int)$data['reason']; |
|
| 274 | + $entity->note = (string)$data['note']; |
|
| 275 | + $entity->status = (int)$data['status']; |
|
| 276 | + $entity->adminid = (int)$data['adminid']; |
|
| 277 | + $entity->lastmodified = (string)$data['lastmodified']; |
|
| 278 | + $entity->comment = (string)$data['comment']; |
|
| 279 | 279 | $entity->cache = $this->cachesRepository->fetchOneBy(['cache_id' => $entity->cacheid]); |
| 280 | 280 | $entity->user = $this->userRepository->fetchOneById($entity->userid); |
| 281 | 281 | if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid); |