@@ -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 | } |
@@ -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 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new RatingTopsEntity(); |
| 189 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 190 | - $entity->rating = (int) $data['rating']; |
|
| 189 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 190 | + $entity->rating = (int)$data['rating']; |
|
| 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 GkMoveWaypointEntity(); |
| 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 | } |
@@ -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 | } |
@@ -189,11 +189,11 @@ discard block |
||
| 189 | 189 | public function getEntityFromDatabaseArray(array $data) |
| 190 | 190 | { |
| 191 | 191 | $entity = new GeodbChangelogEntity(); |
| 192 | - $entity->id = (int) $data['id']; |
|
| 193 | - $entity->datum = new DateTime($data['datum']); |
|
| 194 | - $entity->beschreibung = (string) $data['beschreibung']; |
|
| 195 | - $entity->autor = (string) $data['autor']; |
|
| 196 | - $entity->version = (string) $data['version']; |
|
| 192 | + $entity->id = (int)$data['id']; |
|
| 193 | + $entity->datum = new DateTime($data['datum']); |
|
| 194 | + $entity->beschreibung = (string)$data['beschreibung']; |
|
| 195 | + $entity->autor = (string)$data['autor']; |
|
| 196 | + $entity->version = (string)$data['version']; |
|
| 197 | 197 | |
| 198 | 198 | return $entity; |
| 199 | 199 | } |
@@ -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 | } |
@@ -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']; |
|
| 200 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
| 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']; |
|
| 208 | - $entity->modifiedSince = new DateTime($data['modified_since']); |
|
| 209 | - $entity->cleaned = (int) $data['cleaned']; |
|
| 210 | - $entity->agent = (string) $data['agent']; |
|
| 199 | + $entity->id = (int)$data['id']; |
|
| 200 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
| 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']; |
|
| 208 | + $entity->modifiedSince = new DateTime($data['modified_since']); |
|
| 209 | + $entity->cleaned = (int)$data['cleaned']; |
|
| 210 | + $entity->agent = (string)$data['agent']; |
|
| 211 | 211 | |
| 212 | 212 | return $entity; |
| 213 | 213 | } |
@@ -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 | } |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | public function getEntityFromDatabaseArray(array $data) |
| 187 | 187 | { |
| 188 | 188 | $entity = new GeodbLocationsEntity(); |
| 189 | - $entity->locId = (int) $data['loc_id']; |
|
| 190 | - $entity->locType = (int) $data['loc_type']; |
|
| 189 | + $entity->locId = (int)$data['loc_id']; |
|
| 190 | + $entity->locType = (int)$data['loc_type']; |
|
| 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 GkUserEntity(); |
| 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->cacheId = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->cacheId = (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 GeoCacheNpaAreasEntity(); |
| 190 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 191 | - $entity->npaId = (int) $data['npa_id']; |
|
| 192 | - $entity->calculated = (int) $data['calculated']; |
|
| 190 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 191 | + $entity->npaId = (int)$data['npa_id']; |
|
| 192 | + $entity->calculated = (int)$data['calculated']; |
|
| 193 | 193 | |
| 194 | 194 | return $entity; |
| 195 | 195 | } |