@@ -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']; |
|
| 193 | + $entity->id = (int)$data['id']; |
|
| 194 | 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']; |
|
| 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 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->cacheKey = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->cacheKey = (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 OkapiCacheReadsEntity(); |
| 188 | - $entity->cacheKey = (string) $data['cache_key']; |
|
| 188 | + $entity->cacheKey = (string)$data['cache_key']; |
|
| 189 | 189 | |
| 190 | 190 | return $entity; |
| 191 | 191 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $databaseArray |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | - $entity->code = (int) $this->connection->lastInsertId(); |
|
| 124 | + $entity->code = (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 NutsCodesEntity(); |
| 189 | - $entity->code = (string) $data['code']; |
|
| 190 | - $entity->name = (string) $data['name']; |
|
| 189 | + $entity->code = (string)$data['code']; |
|
| 190 | + $entity->name = (string)$data['name']; |
|
| 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 | } |
@@ -188,10 +188,10 @@ discard block |
||
| 188 | 188 | public function getEntityFromDatabaseArray(array $data) |
| 189 | 189 | { |
| 190 | 190 | $entity = new AttributeGroupsEntity(); |
| 191 | - $entity->id = (int) $data['id']; |
|
| 192 | - $entity->categoryId = (int) $data['category_id']; |
|
| 193 | - $entity->name = (string) $data['name']; |
|
| 194 | - $entity->transId = (int) $data['trans_id']; |
|
| 191 | + $entity->id = (int)$data['id']; |
|
| 192 | + $entity->categoryId = (int)$data['category_id']; |
|
| 193 | + $entity->name = (string)$data['name']; |
|
| 194 | + $entity->transId = (int)$data['trans_id']; |
|
| 195 | 195 | |
| 196 | 196 | return $entity; |
| 197 | 197 | } |
@@ -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,10 +189,10 @@ discard block |
||
| 189 | 189 | public function getEntityFromDatabaseArray(array $data) |
| 190 | 190 | { |
| 191 | 191 | $entity = new LoginsEntity(); |
| 192 | - $entity->id = (int) $data['id']; |
|
| 193 | - $entity->userId = (int) $data['user_id']; |
|
| 194 | - $entity->remoteAddr = (string) $data['remote_addr']; |
|
| 195 | - $entity->success = (int) $data['success']; |
|
| 192 | + $entity->id = (int)$data['id']; |
|
| 193 | + $entity->userId = (int)$data['user_id']; |
|
| 194 | + $entity->remoteAddr = (string)$data['remote_addr']; |
|
| 195 | + $entity->success = (int)$data['success']; |
|
| 196 | 196 | $entity->timestamp = new DateTime($data['timestamp']); |
| 197 | 197 | |
| 198 | 198 | 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 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 | } |
@@ -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 | } |
@@ -187,8 +187,8 @@ discard block |
||
| 187 | 187 | public function getEntityFromDatabaseArray(array $data) |
| 188 | 188 | { |
| 189 | 189 | $entity = new OkapiAuthorizationsEntity(); |
| 190 | - $entity->consumerKey = (string) $data['consumer_key']; |
|
| 191 | - $entity->userId = (int) $data['user_id']; |
|
| 190 | + $entity->consumerKey = (string)$data['consumer_key']; |
|
| 191 | + $entity->userId = (int)$data['user_id']; |
|
| 192 | 192 | $entity->lastAccessToken = new DateTime($data['last_access_token']); |
| 193 | 193 | |
| 194 | 194 | return $entity; |
@@ -435,8 +435,8 @@ discard block |
||
| 435 | 435 | . ($namelike ? " AND `name` LIKE '%" . sql_escape($namelike) . "%'" : '') |
| 436 | 436 | . ($userlike ? " AND `username` LIKE '%" . sql_escape($userlike) . "%'" : ''), |
| 437 | 437 | 0, |
| 438 | - (int) $startat, |
|
| 439 | - (int) $maxitems, |
|
| 438 | + (int)$startat, |
|
| 439 | + (int)$maxitems, |
|
| 440 | 440 | true |
| 441 | 441 | ); |
| 442 | 442 | } |
@@ -526,8 +526,8 @@ discard block |
||
| 526 | 526 | ORDER BY `prio`, $nameField |
| 527 | 527 | LIMIT &2,&3", |
| 528 | 528 | $login->userid, |
| 529 | - (int) $startat, |
|
| 530 | - (int) $maxitems |
|
| 529 | + (int)$startat, |
|
| 530 | + (int)$maxitems |
|
| 531 | 531 | ); |
| 532 | 532 | |
| 533 | 533 | $lists = sql_fetch_assoc_table($rs); |
@@ -72,8 +72,8 @@ |
||
| 72 | 72 | ] |
| 73 | 73 | ) |
| 74 | 74 | ->orderBy('caches.' . $dateField, $sortOrder) |
| 75 | - ->setFirstResult((int) $startAt) |
|
| 76 | - ->setMaxResults((int) $perpage); |
|
| 75 | + ->setFirstResult((int)$startAt) |
|
| 76 | + ->setMaxResults((int)$perpage); |
|
| 77 | 77 | |
| 78 | 78 | if ($country) { |
| 79 | 79 | $newCachesQuery->andWhere('`caches`.`country`= :country'); |