@@ -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 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->z = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->z = (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 OkapiTileStatusEntity(); |
| 191 | - $entity->z = (int) $data['z']; |
|
| 192 | - $entity->x = (int) $data['x']; |
|
| 193 | - $entity->y = (int) $data['y']; |
|
| 194 | - $entity->status = (int) $data['status']; |
|
| 191 | + $entity->z = (int)$data['z']; |
|
| 192 | + $entity->x = (int)$data['x']; |
|
| 193 | + $entity->y = (int)$data['y']; |
|
| 194 | + $entity->status = (int)$data['status']; |
|
| 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 | } |
@@ -187,8 +187,8 @@ discard block |
||
| 187 | 187 | public function getEntityFromDatabaseArray(array $data) |
| 188 | 188 | { |
| 189 | 189 | $entity = new SysTransEntity(); |
| 190 | - $entity->id = (int) $data['id']; |
|
| 191 | - $entity->text = (string) $data['text']; |
|
| 190 | + $entity->id = (int)$data['id']; |
|
| 191 | + $entity->text = (string)$data['text']; |
|
| 192 | 192 | $entity->lastModified = new DateTime($data['last_modified']); |
| 193 | 193 | |
| 194 | 194 | 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 | } |
@@ -196,18 +196,18 @@ discard block |
||
| 196 | 196 | public function getEntityFromDatabaseArray(array $data) |
| 197 | 197 | { |
| 198 | 198 | $entity = new XmlsessionEntity(); |
| 199 | - $entity->id = (int) $data['id']; |
|
| 199 | + $entity->id = (int)$data['id']; |
|
| 200 | 200 | $entity->dateCreated = new DateTime($data['date_created']); |
| 201 | 201 | $entity->lastUse = new DateTime($data['last_use']); |
| 202 | - $entity->users = (int) $data['users']; |
|
| 203 | - $entity->caches = (int) $data['caches']; |
|
| 204 | - $entity->cachedescs = (int) $data['cachedescs']; |
|
| 205 | - $entity->cachelogs = (int) $data['cachelogs']; |
|
| 206 | - $entity->pictures = (int) $data['pictures']; |
|
| 207 | - $entity->removedobjects = (int) $data['removedobjects']; |
|
| 202 | + $entity->users = (int)$data['users']; |
|
| 203 | + $entity->caches = (int)$data['caches']; |
|
| 204 | + $entity->cachedescs = (int)$data['cachedescs']; |
|
| 205 | + $entity->cachelogs = (int)$data['cachelogs']; |
|
| 206 | + $entity->pictures = (int)$data['pictures']; |
|
| 207 | + $entity->removedobjects = (int)$data['removedobjects']; |
|
| 208 | 208 | $entity->modifiedSince = new DateTime($data['modified_since']); |
| 209 | - $entity->cleaned = (int) $data['cleaned']; |
|
| 210 | - $entity->agent = (string) $data['agent']; |
|
| 209 | + $entity->cleaned = (int)$data['cleaned']; |
|
| 210 | + $entity->agent = (string)$data['agent']; |
|
| 211 | 211 | |
| 212 | 212 | return $entity; |
| 213 | 213 | } |