@@ -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 | } |
@@ -190,12 +190,12 @@ discard block |
||
| 190 | 190 | public function getEntityFromDatabaseArray(array $data) |
| 191 | 191 | { |
| 192 | 192 | $entity = new FieldNoteEntity(); |
| 193 | - $entity->id = (int) $data['id']; |
|
| 194 | - $entity->userId = (int) $data['user_id']; |
|
| 195 | - $entity->geocacheId = (int) $data['geocache_id']; |
|
| 193 | + $entity->id = (int)$data['id']; |
|
| 194 | + $entity->userId = (int)$data['user_id']; |
|
| 195 | + $entity->geocacheId = (int)$data['geocache_id']; |
|
| 196 | 196 | $entity->type = $data['type']; |
| 197 | - $entity->date = new DateTime($data['date']); |
|
| 198 | - $entity->text = (string) $data['text']; |
|
| 197 | + $entity->date = new DateTime($data['date']); |
|
| 198 | + $entity->text = (string)$data['text']; |
|
| 199 | 199 | |
| 200 | 200 | return $entity; |
| 201 | 201 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 LogentriesEntity(); |
| 196 | - $entity->id = (int) $data['id']; |
|
| 197 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
| 198 | - $entity->module = (string) $data['module']; |
|
| 199 | - $entity->eventid = (int) $data['eventid']; |
|
| 200 | - $entity->userid = (int) $data['userid']; |
|
| 201 | - $entity->objectid1 = (int) $data['objectid1']; |
|
| 202 | - $entity->objectid2 = (int) $data['objectid2']; |
|
| 203 | - $entity->logtext = (string) $data['logtext']; |
|
| 204 | - $entity->details = (string) $data['details']; |
|
| 196 | + $entity->id = (int)$data['id']; |
|
| 197 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
| 198 | + $entity->module = (string)$data['module']; |
|
| 199 | + $entity->eventid = (int)$data['eventid']; |
|
| 200 | + $entity->userid = (int)$data['userid']; |
|
| 201 | + $entity->objectid1 = (int)$data['objectid1']; |
|
| 202 | + $entity->objectid2 = (int)$data['objectid2']; |
|
| 203 | + $entity->logtext = (string)$data['logtext']; |
|
| 204 | + $entity->details = (string)$data['details']; |
|
| 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 | } |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new GeoCacheReportReasonsEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->name = (string) $data['name']; |
|
| 193 | - $entity->transId = (int) $data['trans_id']; |
|
| 194 | - $entity->order = (int) $data['order']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->name = (string)$data['name']; |
|
| 193 | + $entity->transId = (int)$data['trans_id']; |
|
| 194 | + $entity->order = (int)$data['order']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -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 | } |
@@ -190,12 +190,12 @@ discard block |
||
| 190 | 190 | public function getEntityFromDatabaseArray(array $data) |
| 191 | 191 | { |
| 192 | 192 | $entity = new SavedTextsEntity(); |
| 193 | - $entity->id = (int) $data['id']; |
|
| 194 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
| 195 | - $entity->objectType = (int) $data['object_type']; |
|
| 196 | - $entity->objectId = (int) $data['object_id']; |
|
| 197 | - $entity->subtype = (int) $data['subtype']; |
|
| 198 | - $entity->text = (string) $data['text']; |
|
| 193 | + $entity->id = (int)$data['id']; |
|
| 194 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
| 195 | + $entity->objectType = (int)$data['object_type']; |
|
| 196 | + $entity->objectId = (int)$data['object_id']; |
|
| 197 | + $entity->subtype = (int)$data['subtype']; |
|
| 198 | + $entity->text = (string)$data['text']; |
|
| 199 | 199 | |
| 200 | 200 | return $entity; |
| 201 | 201 | } |
@@ -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 | } |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new ReplicationOverwriteEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->type = (int) $data['type']; |
|
| 193 | - $entity->value = (string) $data['value']; |
|
| 194 | - $entity->uuid = (string) $data['uuid']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->type = (int)$data['type']; |
|
| 193 | + $entity->value = (string)$data['value']; |
|
| 194 | + $entity->uuid = (string)$data['uuid']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -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->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 | } |
@@ -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 | } |
@@ -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']; |
|
| 201 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
| 202 | - $entity->lastModified = new DateTime($data['last_modified']); |
|
| 203 | - $entity->url = (string) $data['url']; |
|
| 204 | - $entity->title = (string) $data['title']; |
|
| 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']; |
|
| 198 | + $entity->id = (int)$data['id']; |
|
| 199 | + $entity->uuid = (string)$data['uuid']; |
|
| 200 | + $entity->node = (int)$data['node']; |
|
| 201 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
| 202 | + $entity->lastModified = new DateTime($data['last_modified']); |
|
| 203 | + $entity->url = (string)$data['url']; |
|
| 204 | + $entity->title = (string)$data['title']; |
|
| 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']; |
|
| 209 | 209 | |
| 210 | 210 | return $entity; |
| 211 | 211 | } |
@@ -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->version = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->version = (int)$this->connection->lastInsertId(); |
|
| 125 | 125 | |
| 126 | 126 | return $entity; |
| 127 | 127 | } |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | public function getEntityFromDatabaseArray(array $data) |
| 186 | 186 | { |
| 187 | 187 | $entity = new MigrationVersionsEntity(); |
| 188 | - $entity->version = (string) $data['version']; |
|
| 188 | + $entity->version = (string)$data['version']; |
|
| 189 | 189 | |
| 190 | 190 | return $entity; |
| 191 | 191 | } |