@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | ->from(self::TABLE); |
91 | 91 | |
92 | 92 | foreach ($where as $column => $value) { |
93 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
93 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | foreach ($order as $field => $direction) { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | if (count($where) > 0) { |
134 | 134 | foreach ($where as $column => $value) { |
135 | - $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
135 | + $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value)); |
|
136 | 136 | } |
137 | 137 | } |
138 | 138 |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $databaseArray |
113 | 113 | ); |
114 | 114 | |
115 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
115 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
116 | 116 | |
117 | 117 | return $entity; |
118 | 118 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | ['id' => $entity->id] |
141 | 141 | ); |
142 | 142 | |
143 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
143 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
144 | 144 | |
145 | 145 | return $entity; |
146 | 146 | } |
@@ -222,13 +222,13 @@ discard block |
||
222 | 222 | public function getEntityFromDatabaseArray(array $data) |
223 | 223 | { |
224 | 224 | $entity = new UserEntity(); |
225 | - $entity->id = (int) $data['user_id']; |
|
225 | + $entity->id = (int)$data['user_id']; |
|
226 | 226 | $entity->username = $data['username']; |
227 | 227 | $entity->password = $data['password']; |
228 | 228 | $entity->email = $data['email']; |
229 | - $entity->latitude = (double) $data['latitude']; |
|
230 | - $entity->longitude = (double) $data['longitude']; |
|
231 | - $entity->isActive = (bool) $data['is_active_flag']; |
|
229 | + $entity->latitude = (double)$data['latitude']; |
|
230 | + $entity->longitude = (double)$data['longitude']; |
|
231 | + $entity->isActive = (bool)$data['is_active_flag']; |
|
232 | 232 | $entity->firstname = $data['first_name']; |
233 | 233 | $entity->lastname = $data['last_name']; |
234 | 234 | $entity->country = $data['country']; |