@@ -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 | } |
@@ -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->key = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->key = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -192,14 +192,14 @@ discard block |
||
192 | 192 | public function getEntityFromDatabaseArray(array $data) |
193 | 193 | { |
194 | 194 | $entity = new OkapiTokensEntity(); |
195 | - $entity->key = (string) $data['key']; |
|
196 | - $entity->secret = (string) $data['secret']; |
|
195 | + $entity->key = (string)$data['key']; |
|
196 | + $entity->secret = (string)$data['secret']; |
|
197 | 197 | $entity->tokenType = $data['token_type']; |
198 | - $entity->timestamp = (int) $data['timestamp']; |
|
199 | - $entity->userId = (int) $data['user_id']; |
|
200 | - $entity->consumerKey = (string) $data['consumer_key']; |
|
201 | - $entity->verifier = (string) $data['verifier']; |
|
202 | - $entity->callback = (string) $data['callback']; |
|
198 | + $entity->timestamp = (int)$data['timestamp']; |
|
199 | + $entity->userId = (int)$data['user_id']; |
|
200 | + $entity->consumerKey = (string)$data['consumer_key']; |
|
201 | + $entity->verifier = (string)$data['verifier']; |
|
202 | + $entity->callback = (string)$data['callback']; |
|
203 | 203 | |
204 | 204 | return $entity; |
205 | 205 | } |
@@ -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 | } |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | public function getEntityFromDatabaseArray(array $data) |
188 | 188 | { |
189 | 189 | $entity = new UserStatpicEntity(); |
190 | - $entity->userId = (int) $data['user_id']; |
|
191 | - $entity->lang = (string) $data['lang']; |
|
192 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
190 | + $entity->userId = (int)$data['user_id']; |
|
191 | + $entity->lang = (string)$data['lang']; |
|
192 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
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->consumerKey = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->consumerKey = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -192,12 +192,12 @@ discard block |
||
192 | 192 | public function getEntityFromDatabaseArray(array $data) |
193 | 193 | { |
194 | 194 | $entity = new OkapiStatsHourlyEntity(); |
195 | - $entity->consumerKey = (string) $data['consumer_key']; |
|
196 | - $entity->userId = (int) $data['user_id']; |
|
197 | - $entity->periodStart = new DateTime($data['period_start']); |
|
198 | - $entity->serviceName = (string) $data['service_name']; |
|
199 | - $entity->totalCalls = (int) $data['total_calls']; |
|
200 | - $entity->httpCalls = (int) $data['http_calls']; |
|
195 | + $entity->consumerKey = (string)$data['consumer_key']; |
|
196 | + $entity->userId = (int)$data['user_id']; |
|
197 | + $entity->periodStart = new DateTime($data['period_start']); |
|
198 | + $entity->serviceName = (string)$data['service_name']; |
|
199 | + $entity->totalCalls = (int)$data['total_calls']; |
|
200 | + $entity->httpCalls = (int)$data['http_calls']; |
|
201 | 201 | $entity->totalRuntime = $data['total_runtime']; |
202 | 202 | $entity->httpRuntime = $data['http_runtime']; |
203 | 203 |