@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -194,16 +194,16 @@ discard block |
||
| 194 | 194 | public function getEntityFromDatabaseArray(array $data) |
| 195 | 195 | { |
| 196 | 196 | $entity = new GeoCacheLocationEntity(); |
| 197 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 197 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 198 | 198 | $entity->lastModified = new DateTime($data['last_modified']); |
| 199 | - $entity->adm1 = (string) $data['adm1']; |
|
| 200 | - $entity->adm2 = (string) $data['adm2']; |
|
| 201 | - $entity->adm3 = (string) $data['adm3']; |
|
| 202 | - $entity->adm4 = (string) $data['adm4']; |
|
| 203 | - $entity->code1 = (string) $data['code1']; |
|
| 204 | - $entity->code2 = (string) $data['code2']; |
|
| 205 | - $entity->code3 = (string) $data['code3']; |
|
| 206 | - $entity->code4 = (string) $data['code4']; |
|
| 199 | + $entity->adm1 = (string)$data['adm1']; |
|
| 200 | + $entity->adm2 = (string)$data['adm2']; |
|
| 201 | + $entity->adm3 = (string)$data['adm3']; |
|
| 202 | + $entity->adm4 = (string)$data['adm4']; |
|
| 203 | + $entity->code1 = (string)$data['code1']; |
|
| 204 | + $entity->code2 = (string)$data['code2']; |
|
| 205 | + $entity->code3 = (string)$data['code3']; |
|
| 206 | + $entity->code4 = (string)$data['code4']; |
|
| 207 | 207 | |
| 208 | 208 | return $entity; |
| 209 | 209 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->name = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->name = (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 SysCronEntity(); |
| 189 | - $entity->name = (string) $data['name']; |
|
| 189 | + $entity->name = (string)$data['name']; |
|
| 190 | 190 | $entity->lastRun = new DateTime($data['last_run']); |
| 191 | 191 | |
| 192 | 192 | 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,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new OkapiClogEntity(); |
| 189 | - $entity->id = (int) $data['id']; |
|
| 190 | - $entity->data = (string) $data['data']; |
|
| 189 | + $entity->id = (int)$data['id']; |
|
| 190 | + $entity->data = (string)$data['data']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->resultId = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->resultId = (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 Map2DataEntity(); |
| 189 | - $entity->resultId = (int) $data['result_id']; |
|
| 190 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 189 | + $entity->resultId = (int)$data['result_id']; |
|
| 190 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |
@@ -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 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new GeoCacheListItemsEntity(); |
| 189 | - $entity->cacheListId = (int) $data['cache_list_id']; |
|
| 190 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 189 | + $entity->cacheListId = (int)$data['cache_list_id']; |
|
| 190 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 191 | 191 | |
| 192 | 192 | return $entity; |
| 193 | 193 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->key = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->key = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -191,13 +191,13 @@ discard block |
||
| 191 | 191 | public function getEntityFromDatabaseArray(array $data) |
| 192 | 192 | { |
| 193 | 193 | $entity = new OkapiConsumersEntity(); |
| 194 | - $entity->key = (string) $data['key']; |
|
| 195 | - $entity->name = (string) $data['name']; |
|
| 196 | - $entity->secret = (string) $data['secret']; |
|
| 197 | - $entity->url = (string) $data['url']; |
|
| 198 | - $entity->email = (string) $data['email']; |
|
| 194 | + $entity->key = (string)$data['key']; |
|
| 195 | + $entity->name = (string)$data['name']; |
|
| 196 | + $entity->secret = (string)$data['secret']; |
|
| 197 | + $entity->url = (string)$data['url']; |
|
| 198 | + $entity->email = (string)$data['email']; |
|
| 199 | 199 | $entity->dateCreated = new DateTime($data['date_created']); |
| 200 | - $entity->bflags = (int) $data['bflags']; |
|
| 200 | + $entity->bflags = (int)$data['bflags']; |
|
| 201 | 201 | |
| 202 | 202 | return $entity; |
| 203 | 203 | } |
@@ -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 NodesEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->name = (string) $data['name']; |
|
| 193 | - $entity->url = (string) $data['url']; |
|
| 194 | - $entity->waypointPrefix = (string) $data['waypoint_prefix']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->name = (string)$data['name']; |
|
| 193 | + $entity->url = (string)$data['url']; |
|
| 194 | + $entity->waypointPrefix = (string)$data['waypoint_prefix']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->lang = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->lang = (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 CountriesListDefaultEntity(); |
| 189 | - $entity->lang = (string) $data['lang']; |
|
| 190 | - $entity->show = (string) $data['show']; |
|
| 189 | + $entity->lang = (string)$data['lang']; |
|
| 190 | + $entity->show = (string)$data['show']; |
|
| 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 | } |
@@ -195,17 +195,17 @@ discard block |
||
| 195 | 195 | public function getEntityFromDatabaseArray(array $data) |
| 196 | 196 | { |
| 197 | 197 | $entity = new Mp3Entity(); |
| 198 | - $entity->id = (int) $data['id']; |
|
| 199 | - $entity->uuid = (string) $data['uuid']; |
|
| 200 | - $entity->node = (int) $data['node']; |
|
| 198 | + $entity->id = (int)$data['id']; |
|
| 199 | + $entity->uuid = (string)$data['uuid']; |
|
| 200 | + $entity->node = (int)$data['node']; |
|
| 201 | 201 | $entity->dateCreated = new DateTime($data['date_created']); |
| 202 | 202 | $entity->lastModified = new DateTime($data['last_modified']); |
| 203 | - $entity->url = (string) $data['url']; |
|
| 204 | - $entity->title = (string) $data['title']; |
|
| 203 | + $entity->url = (string)$data['url']; |
|
| 204 | + $entity->title = (string)$data['title']; |
|
| 205 | 205 | $entity->lastUrlCheck = new DateTime($data['last_url_check']); |
| 206 | - $entity->objectId = (int) $data['object_id']; |
|
| 207 | - $entity->local = (int) $data['local']; |
|
| 208 | - $entity->unknownFormat = (int) $data['unknown_format']; |
|
| 206 | + $entity->objectId = (int)$data['object_id']; |
|
| 207 | + $entity->local = (int)$data['local']; |
|
| 208 | + $entity->unknownFormat = (int)$data['unknown_format']; |
|
| 209 | 209 | |
| 210 | 210 | return $entity; |
| 211 | 211 | } |