@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 | } |
@@ -202,23 +202,23 @@ discard block |
||
202 | 202 | public function getEntityFromDatabaseArray(array $data) |
203 | 203 | { |
204 | 204 | $entity = new PicturesEntity(); |
205 | - $entity->id = (int) $data['id']; |
|
206 | - $entity->uuid = (string) $data['uuid']; |
|
207 | - $entity->node = (int) $data['node']; |
|
208 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
209 | - $entity->lastModified = new DateTime($data['last_modified']); |
|
210 | - $entity->url = (string) $data['url']; |
|
211 | - $entity->title = (string) $data['title']; |
|
212 | - $entity->lastUrlCheck = new DateTime($data['last_url_check']); |
|
213 | - $entity->objectId = (int) $data['object_id']; |
|
214 | - $entity->objectType = (int) $data['object_type']; |
|
215 | - $entity->thumbUrl = (string) $data['thumb_url']; |
|
216 | - $entity->thumbLastGenerated = new DateTime($data['thumb_last_generated']); |
|
217 | - $entity->spoiler = (int) $data['spoiler']; |
|
218 | - $entity->local = (int) $data['local']; |
|
219 | - $entity->unknownFormat = (int) $data['unknown_format']; |
|
220 | - $entity->display = (int) $data['display']; |
|
221 | - $entity->mappreview = (int) $data['mappreview']; |
|
205 | + $entity->id = (int)$data['id']; |
|
206 | + $entity->uuid = (string)$data['uuid']; |
|
207 | + $entity->node = (int)$data['node']; |
|
208 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
209 | + $entity->lastModified = new DateTime($data['last_modified']); |
|
210 | + $entity->url = (string)$data['url']; |
|
211 | + $entity->title = (string)$data['title']; |
|
212 | + $entity->lastUrlCheck = new DateTime($data['last_url_check']); |
|
213 | + $entity->objectId = (int)$data['object_id']; |
|
214 | + $entity->objectType = (int)$data['object_type']; |
|
215 | + $entity->thumbUrl = (string)$data['thumb_url']; |
|
216 | + $entity->thumbLastGenerated = new DateTime($data['thumb_last_generated']); |
|
217 | + $entity->spoiler = (int)$data['spoiler']; |
|
218 | + $entity->local = (int)$data['local']; |
|
219 | + $entity->unknownFormat = (int)$data['unknown_format']; |
|
220 | + $entity->display = (int)$data['display']; |
|
221 | + $entity->mappreview = (int)$data['mappreview']; |
|
222 | 222 | $entity->seq = $data['seq']; |
223 | 223 | |
224 | 224 | return $entity; |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 WatchesWaitingtypesEntity(); |
189 | - $entity->id = (int) $data['id']; |
|
190 | - $entity->watchtype = (string) $data['watchtype']; |
|
189 | + $entity->id = (int)$data['id']; |
|
190 | + $entity->watchtype = (string)$data['watchtype']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 ObjectTypesEntity(); |
189 | - $entity->id = (int) $data['id']; |
|
190 | - $entity->name = (string) $data['name']; |
|
189 | + $entity->id = (int)$data['id']; |
|
190 | + $entity->name = (string)$data['name']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->userId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->userId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | public function getEntityFromDatabaseArray(array $data) |
192 | 192 | { |
193 | 193 | $entity = new StatUserEntity(); |
194 | - $entity->userId = (int) $data['user_id']; |
|
194 | + $entity->userId = (int)$data['user_id']; |
|
195 | 195 | $entity->found = $data['found']; |
196 | 196 | $entity->notfound = $data['notfound']; |
197 | 197 | $entity->note = $data['note']; |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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,8 +186,8 @@ discard block |
||
186 | 186 | public function getEntityFromDatabaseArray(array $data) |
187 | 187 | { |
188 | 188 | $entity = new SysconfigEntity(); |
189 | - $entity->name = (string) $data['name']; |
|
190 | - $entity->value = (string) $data['value']; |
|
189 | + $entity->name = (string)$data['name']; |
|
190 | + $entity->value = (string)$data['value']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 | } |
@@ -193,15 +193,15 @@ discard block |
||
193 | 193 | public function getEntityFromDatabaseArray(array $data) |
194 | 194 | { |
195 | 195 | $entity = new GkMoveEntity(); |
196 | - $entity->id = (int) $data['id']; |
|
197 | - $entity->itemid = (int) $data['itemid']; |
|
196 | + $entity->id = (int)$data['id']; |
|
197 | + $entity->itemid = (int)$data['itemid']; |
|
198 | 198 | $entity->latitude = $data['latitude']; |
199 | 199 | $entity->longitude = $data['longitude']; |
200 | - $entity->datemoved = new DateTime($data['datemoved']); |
|
201 | - $entity->datelogged = new DateTime($data['datelogged']); |
|
202 | - $entity->userid = (int) $data['userid']; |
|
203 | - $entity->comment = (string) $data['comment']; |
|
204 | - $entity->logtypeid = (int) $data['logtypeid']; |
|
200 | + $entity->datemoved = new DateTime($data['datemoved']); |
|
201 | + $entity->datelogged = new DateTime($data['datelogged']); |
|
202 | + $entity->userid = (int)$data['userid']; |
|
203 | + $entity->comment = (string)$data['comment']; |
|
204 | + $entity->logtypeid = (int)$data['logtypeid']; |
|
205 | 205 | |
206 | 206 | return $entity; |
207 | 207 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -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 | } |
@@ -197,19 +197,19 @@ discard block |
||
197 | 197 | public function getEntityFromDatabaseArray(array $data) |
198 | 198 | { |
199 | 199 | $entity = new GeoCachesModifiedEntity(); |
200 | - $entity->cacheId = (int) $data['cache_id']; |
|
201 | - $entity->dateModified = new DateTime($data['date_modified']); |
|
202 | - $entity->name = (string) $data['name']; |
|
203 | - $entity->type = (int) $data['type']; |
|
204 | - $entity->dateHidden = new DateTime($data['date_hidden']); |
|
205 | - $entity->size = (int) $data['size']; |
|
206 | - $entity->difficulty = (int) $data['difficulty']; |
|
207 | - $entity->terrain = (int) $data['terrain']; |
|
200 | + $entity->cacheId = (int)$data['cache_id']; |
|
201 | + $entity->dateModified = new DateTime($data['date_modified']); |
|
202 | + $entity->name = (string)$data['name']; |
|
203 | + $entity->type = (int)$data['type']; |
|
204 | + $entity->dateHidden = new DateTime($data['date_hidden']); |
|
205 | + $entity->size = (int)$data['size']; |
|
206 | + $entity->difficulty = (int)$data['difficulty']; |
|
207 | + $entity->terrain = (int)$data['terrain']; |
|
208 | 208 | $entity->searchTime = $data['search_time']; |
209 | 209 | $entity->wayLength = $data['way_length']; |
210 | - $entity->wpGc = (string) $data['wp_gc']; |
|
211 | - $entity->wpNc = (string) $data['wp_nc']; |
|
212 | - $entity->restoredBy = (int) $data['restored_by']; |
|
210 | + $entity->wpGc = (string)$data['wp_gc']; |
|
211 | + $entity->wpNc = (string)$data['wp_nc']; |
|
212 | + $entity->restoredBy = (int)$data['restored_by']; |
|
213 | 213 | |
214 | 214 | return $entity; |
215 | 215 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->locId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->locId = (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 GeodbCoordinatesEntity(); |
196 | - $entity->locId = (int) $data['loc_id']; |
|
196 | + $entity->locId = (int)$data['loc_id']; |
|
197 | 197 | $entity->lon = $data['lon']; |
198 | 198 | $entity->lat = $data['lat']; |
199 | - $entity->coordType = (int) $data['coord_type']; |
|
200 | - $entity->coordSubtype = (int) $data['coord_subtype']; |
|
201 | - $entity->validSince = new DateTime($data['valid_since']); |
|
202 | - $entity->dateTypeSince = (int) $data['date_type_since']; |
|
203 | - $entity->validUntil = new DateTime($data['valid_until']); |
|
204 | - $entity->dateTypeUntil = (int) $data['date_type_until']; |
|
199 | + $entity->coordType = (int)$data['coord_type']; |
|
200 | + $entity->coordSubtype = (int)$data['coord_subtype']; |
|
201 | + $entity->validSince = new DateTime($data['valid_since']); |
|
202 | + $entity->dateTypeSince = (int)$data['date_type_since']; |
|
203 | + $entity->validUntil = new DateTime($data['valid_until']); |
|
204 | + $entity->dateTypeUntil = (int)$data['date_type_until']; |
|
205 | 205 | |
206 | 206 | return $entity; |
207 | 207 | } |