Completed
Pull Request — development (#663)
by Nick
07:42
created
htdocs/src/Oc/User/UserRepository.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         if (count($where) > 0) {
97 97
             foreach ($where as $column => $value) {
98
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
98
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
99 99
             }
100 100
         }
101 101
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $databaseArray
133 133
         );
134 134
 
135
-        $entity->id = (int) $this->connection->lastInsertId();
135
+        $entity->id = (int)$this->connection->lastInsertId();
136 136
 
137 137
         return $entity;
138 138
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             ['user_id' => $entity->id]
161 161
         );
162 162
 
163
-        $entity->id = (int) $this->connection->lastInsertId();
163
+        $entity->id = (int)$this->connection->lastInsertId();
164 164
 
165 165
         return $entity;
166 166
     }
@@ -245,16 +245,16 @@  discard block
 block discarded – undo
245 245
     public function getEntityFromDatabaseArray(array $data)
246 246
     {
247 247
         $entity = new UserEntity();
248
-        $entity->id = (int) $data['user_id'];
249
-        $entity->username = (string) $data['username'];
250
-        $entity->password = (string) $data['password'];
251
-        $entity->email = (string) $data['email'];
252
-        $entity->latitude = (double) $data['latitude'];
253
-        $entity->longitude = (double) $data['longitude'];
254
-        $entity->isActive = (bool) $data['is_active_flag'];
255
-        $entity->firstname = (string) $data['first_name'];
256
-        $entity->lastname = (string) $data['last_name'];
257
-        $entity->country = (string) $data['country'];
248
+        $entity->id = (int)$data['user_id'];
249
+        $entity->username = (string)$data['username'];
250
+        $entity->password = (string)$data['password'];
251
+        $entity->email = (string)$data['email'];
252
+        $entity->latitude = (double)$data['latitude'];
253
+        $entity->longitude = (double)$data['longitude'];
254
+        $entity->isActive = (bool)$data['is_active_flag'];
255
+        $entity->firstname = (string)$data['first_name'];
256
+        $entity->lastname = (string)$data['last_name'];
257
+        $entity->country = (string)$data['country'];
258 258
         $entity->language = strtolower($data['language']);
259 259
 
260 260
         return $entity;
Please login to merge, or discard this patch.