@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $databaseArray |
| 94 | 94 | ); |
| 95 | 95 | |
| 96 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 96 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 97 | 97 | |
| 98 | 98 | return $entity; |
| 99 | 99 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | ['id' => $entity->id] |
| 121 | 121 | ); |
| 122 | 122 | |
| 123 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 123 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 124 | 124 | |
| 125 | 125 | return $entity; |
| 126 | 126 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | 'page_id' => $entity->pageId, |
| 164 | 164 | 'title' => $entity->title, |
| 165 | 165 | 'html' => $entity->html, |
| 166 | - 'position' => (int) $entity->position, |
|
| 166 | + 'position' => (int)$entity->position, |
|
| 167 | 167 | 'updated_at' => $entity->updatedAt->format(DateTime::ATOM), |
| 168 | 168 | 'active' => $entity->active, |
| 169 | 169 | ]; |
@@ -179,13 +179,13 @@ discard block |
||
| 179 | 179 | public function getEntityFromDatabaseArray(array $data) |
| 180 | 180 | { |
| 181 | 181 | $entity = new BlockEntity(); |
| 182 | - $entity->id = (int) $data['id']; |
|
| 183 | - $entity->pageId = (int) $data['page_id']; |
|
| 182 | + $entity->id = (int)$data['id']; |
|
| 183 | + $entity->pageId = (int)$data['page_id']; |
|
| 184 | 184 | $entity->title = $data['title']; |
| 185 | 185 | $entity->html = $data['html']; |
| 186 | - $entity->position = (int) $data['position']; |
|
| 186 | + $entity->position = (int)$data['position']; |
|
| 187 | 187 | $entity->updatedAt = new DateTime($data['updated_at']); |
| 188 | - $entity->active = (bool) $data['active']; |
|
| 188 | + $entity->active = (bool)$data['active']; |
|
| 189 | 189 | |
| 190 | 190 | return $entity; |
| 191 | 191 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->short = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->short = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -193,15 +193,15 @@ discard block |
||
| 193 | 193 | public function getEntityFromDatabaseArray(array $data) |
| 194 | 194 | { |
| 195 | 195 | $entity = new LanguagesEntity(); |
| 196 | - $entity->short = (string) $data['short']; |
|
| 197 | - $entity->name = (string) $data['name']; |
|
| 198 | - $entity->transId = (int) $data['trans_id']; |
|
| 199 | - $entity->nativeName = (string) $data['native_name']; |
|
| 200 | - $entity->de = (string) $data['de']; |
|
| 201 | - $entity->en = (string) $data['en']; |
|
| 202 | - $entity->listDefaultDe = (int) $data['list_default_de']; |
|
| 203 | - $entity->listDefaultEn = (int) $data['list_default_en']; |
|
| 204 | - $entity->isTranslated = (int) $data['is_translated']; |
|
| 196 | + $entity->short = (string)$data['short']; |
|
| 197 | + $entity->name = (string)$data['name']; |
|
| 198 | + $entity->transId = (int)$data['trans_id']; |
|
| 199 | + $entity->nativeName = (string)$data['native_name']; |
|
| 200 | + $entity->de = (string)$data['de']; |
|
| 201 | + $entity->en = (string)$data['en']; |
|
| 202 | + $entity->listDefaultDe = (int)$data['list_default_de']; |
|
| 203 | + $entity->listDefaultEn = (int)$data['list_default_en']; |
|
| 204 | + $entity->isTranslated = (int)$data['is_translated']; |
|
| 205 | 205 | |
| 206 | 206 | return $entity; |
| 207 | 207 | } |
@@ -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 | } |
@@ -190,12 +190,12 @@ discard block |
||
| 190 | 190 | public function getEntityFromDatabaseArray(array $data) |
| 191 | 191 | { |
| 192 | 192 | $entity = new GeoCacheCoordinatesEntity(); |
| 193 | - $entity->id = (int) $data['id']; |
|
| 193 | + $entity->id = (int)$data['id']; |
|
| 194 | 194 | $entity->dateCreated = new DateTime($data['date_created']); |
| 195 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 195 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 196 | 196 | $entity->longitude = $data['longitude']; |
| 197 | 197 | $entity->latitude = $data['latitude']; |
| 198 | - $entity->restoredBy = (int) $data['restored_by']; |
|
| 198 | + $entity->restoredBy = (int)$data['restored_by']; |
|
| 199 | 199 | |
| 200 | 200 | return $entity; |
| 201 | 201 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->word = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->word = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | public function getEntityFromDatabaseArray(array $data) |
| 186 | 186 | { |
| 187 | 187 | $entity = new SearchIgnoreEntity(); |
| 188 | - $entity->word = (string) $data['word']; |
|
| 188 | + $entity->word = (string)$data['word']; |
|
| 189 | 189 | |
| 190 | 190 | return $entity; |
| 191 | 191 | } |
@@ -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 | } |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new NotifyWaitingEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 193 | - $entity->userId = (int) $data['user_id']; |
|
| 194 | - $entity->type = (int) $data['type']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 193 | + $entity->userId = (int)$data['user_id']; |
|
| 194 | + $entity->type = (int)$data['type']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->session = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->session = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new WsTanEntity(); |
| 189 | - $entity->session = (string) $data['session']; |
|
| 190 | - $entity->tan = (string) $data['tan']; |
|
| 189 | + $entity->session = (string)$data['session']; |
|
| 190 | + $entity->tan = (string)$data['tan']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |
@@ -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 | } |
@@ -189,11 +189,11 @@ discard block |
||
| 189 | 189 | public function getEntityFromDatabaseArray(array $data) |
| 190 | 190 | { |
| 191 | 191 | $entity = new GeodbSearchEntity(); |
| 192 | - $entity->id = (int) $data['id']; |
|
| 193 | - $entity->locId = (int) $data['loc_id']; |
|
| 194 | - $entity->sort = (string) $data['sort']; |
|
| 195 | - $entity->simple = (string) $data['simple']; |
|
| 196 | - $entity->simplehash = (int) $data['simplehash']; |
|
| 192 | + $entity->id = (int)$data['id']; |
|
| 193 | + $entity->locId = (int)$data['loc_id']; |
|
| 194 | + $entity->sort = (string)$data['sort']; |
|
| 195 | + $entity->simple = (string)$data['simple']; |
|
| 196 | + $entity->simplehash = (int)$data['simplehash']; |
|
| 197 | 197 | |
| 198 | 198 | return $entity; |
| 199 | 199 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->wpOc = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->wpOc = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new GeoCacheWaypointPoolEntity(); |
| 189 | - $entity->wpOc = (string) $data['wp_oc']; |
|
| 190 | - $entity->uuid = (string) $data['uuid']; |
|
| 189 | + $entity->wpOc = (string)$data['wp_oc']; |
|
| 190 | + $entity->uuid = (string)$data['uuid']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |
@@ -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 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new GkItemWaypointEntity(); |
| 189 | - $entity->id = (int) $data['id']; |
|
| 190 | - $entity->wp = (string) $data['wp']; |
|
| 189 | + $entity->id = (int)$data['id']; |
|
| 190 | + $entity->wp = (string)$data['wp']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |