@@ -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; |
@@ -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); |