@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->cacheListId = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->cacheListId = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -187,9 +187,9 @@ discard block |
||
| 187 | 187 | public function getEntityFromDatabaseArray(array $data) |
| 188 | 188 | { |
| 189 | 189 | $entity = new GeoCacheListBookmarksEntity(); |
| 190 | - $entity->cacheListId = (int) $data['cache_list_id']; |
|
| 191 | - $entity->userId = (int) $data['user_id']; |
|
| 192 | - $entity->password = (string) $data['password']; |
|
| 190 | + $entity->cacheListId = (int)$data['cache_list_id']; |
|
| 191 | + $entity->userId = (int)$data['user_id']; |
|
| 192 | + $entity->password = (string)$data['password']; |
|
| 193 | 193 | |
| 194 | 194 | return $entity; |
| 195 | 195 | } |
@@ -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 NpaTypesEntity(); |
| 191 | - $entity->id = (string) $data['id']; |
|
| 192 | - $entity->name = (string) $data['name']; |
|
| 193 | - $entity->ordinal = (int) $data['ordinal']; |
|
| 194 | - $entity->noWarning = (int) $data['no_warning']; |
|
| 191 | + $entity->id = (string)$data['id']; |
|
| 192 | + $entity->name = (string)$data['name']; |
|
| 193 | + $entity->ordinal = (int)$data['ordinal']; |
|
| 194 | + $entity->noWarning = (int)$data['no_warning']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -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,10 +189,10 @@ discard block |
||
| 189 | 189 | public function getEntityFromDatabaseArray(array $data) |
| 190 | 190 | { |
| 191 | 191 | $entity = new QueriesEntity(); |
| 192 | - $entity->id = (int) $data['id']; |
|
| 193 | - $entity->userId = (int) $data['user_id']; |
|
| 194 | - $entity->name = (string) $data['name']; |
|
| 195 | - $entity->options = (string) $data['options']; |
|
| 192 | + $entity->id = (int)$data['id']; |
|
| 193 | + $entity->userId = (int)$data['user_id']; |
|
| 194 | + $entity->name = (string)$data['name']; |
|
| 195 | + $entity->options = (string)$data['options']; |
|
| 196 | 196 | $entity->lastQueried = new DateTime($data['last_queried']); |
| 197 | 197 | |
| 198 | 198 | return $entity; |
@@ -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,10 +189,10 @@ discard block |
||
| 189 | 189 | public function getEntityFromDatabaseArray(array $data) |
| 190 | 190 | { |
| 191 | 191 | $entity = new NpaAreasEntity(); |
| 192 | - $entity->id = (int) $data['id']; |
|
| 193 | - $entity->typeId = (string) $data['type_id']; |
|
| 194 | - $entity->exclude = (int) $data['exclude']; |
|
| 195 | - $entity->name = (string) $data['name']; |
|
| 192 | + $entity->id = (int)$data['id']; |
|
| 193 | + $entity->typeId = (string)$data['type_id']; |
|
| 194 | + $entity->exclude = (int)$data['exclude']; |
|
| 195 | + $entity->name = (string)$data['name']; |
|
| 196 | 196 | $entity->shape = $data['shape']; |
| 197 | 197 | |
| 198 | 198 | return $entity; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->country = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->country = (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 TownsEntity(); |
| 193 | - $entity->country = (string) $data['country']; |
|
| 194 | - $entity->name = (string) $data['name']; |
|
| 195 | - $entity->transId = (int) $data['trans_id']; |
|
| 193 | + $entity->country = (string)$data['country']; |
|
| 194 | + $entity->name = (string)$data['name']; |
|
| 195 | + $entity->transId = (int)$data['trans_id']; |
|
| 196 | 196 | $entity->coordLat = $data['coord_lat']; |
| 197 | 197 | $entity->coordLong = $data['coord_long']; |
| 198 | - $entity->maplist = (int) $data['maplist']; |
|
| 198 | + $entity->maplist = (int)$data['maplist']; |
|
| 199 | 199 | |
| 200 | 200 | return $entity; |
| 201 | 201 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->hash = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->hash = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -187,9 +187,9 @@ discard block |
||
| 187 | 187 | public function getEntityFromDatabaseArray(array $data) |
| 188 | 188 | { |
| 189 | 189 | $entity = new SearchDoublesEntity(); |
| 190 | - $entity->hash = (int) $data['hash']; |
|
| 191 | - $entity->word = (string) $data['word']; |
|
| 192 | - $entity->simple = (string) $data['simple']; |
|
| 190 | + $entity->hash = (int)$data['hash']; |
|
| 191 | + $entity->word = (string)$data['word']; |
|
| 192 | + $entity->simple = (string)$data['simple']; |
|
| 193 | 193 | |
| 194 | 194 | return $entity; |
| 195 | 195 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->transId = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->transId = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -188,9 +188,9 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new SysTransTextEntity(); |
| 191 | - $entity->transId = (int) $data['trans_id']; |
|
| 192 | - $entity->lang = (string) $data['lang']; |
|
| 193 | - $entity->text = (string) $data['text']; |
|
| 191 | + $entity->transId = (int)$data['trans_id']; |
|
| 192 | + $entity->lang = (string)$data['lang']; |
|
| 193 | + $entity->text = (string)$data['text']; |
|
| 194 | 194 | $entity->lastModified = new DateTime($data['last_modified']); |
| 195 | 195 | |
| 196 | 196 | return $entity; |
@@ -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,7 +186,7 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new SysReplTimestampEntity(); |
| 189 | - $entity->id = (int) $data['id']; |
|
| 189 | + $entity->id = (int)$data['id']; |
|
| 190 | 190 | $entity->data = new DateTime($data['data']); |
| 191 | 191 | |
| 192 | 192 | return $entity; |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->objectType = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->objectType = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -187,9 +187,9 @@ discard block |
||
| 187 | 187 | public function getEntityFromDatabaseArray(array $data) |
| 188 | 188 | { |
| 189 | 189 | $entity = new OkapiSubmittedObjectsEntity(); |
| 190 | - $entity->objectType = (int) $data['object_type']; |
|
| 191 | - $entity->objectId = (int) $data['object_id']; |
|
| 192 | - $entity->consumerKey = (string) $data['consumer_key']; |
|
| 190 | + $entity->objectType = (int)$data['object_type']; |
|
| 191 | + $entity->objectId = (int)$data['object_id']; |
|
| 192 | + $entity->consumerKey = (string)$data['consumer_key']; |
|
| 193 | 193 | |
| 194 | 194 | return $entity; |
| 195 | 195 | } |