Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/CacheListBookmarksRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->cacheListId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheListId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function getEntityFromDatabaseArray(array $data)
188 188
     {
189 189
         $entity = new GeoCacheListBookmarksEntity();
190
-        $entity->cacheListId = (int) $data['cache_list_id'];
191
-        $entity->userId = (int) $data['user_id'];
192
-        $entity->password = (string) $data['password'];
190
+        $entity->cacheListId = (int)$data['cache_list_id'];
191
+        $entity->userId = (int)$data['user_id'];
192
+        $entity->password = (string)$data['password'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheReportStatusRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
     }
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function getEntityFromDatabaseArray(array $data)
188 188
     {
189 189
         $entity = new GeoCacheReportStatusEntity();
190
-        $entity->id = (int) $data['id'];
191
-        $entity->name = (string) $data['name'];
192
-        $entity->transId = (int) $data['trans_id'];
190
+        $entity->id = (int)$data['id'];
191
+        $entity->name = (string)$data['name'];
192
+        $entity->transId = (int)$data['trans_id'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiConsumersRepository.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
     }
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
     public function getEntityFromDatabaseArray(array $data)
192 192
     {
193 193
         $entity = new OkapiConsumersEntity();
194
-        $entity->key = (string) $data['key'];
195
-        $entity->name = (string) $data['name'];
196
-        $entity->secret = (string) $data['secret'];
197
-        $entity->url = (string) $data['url'];
198
-        $entity->email = (string) $data['email'];
199
-        $entity->dateCreated =  new DateTime($data['date_created']);
200
-        $entity->bflags = (int) $data['bflags'];
194
+        $entity->key = (string)$data['key'];
195
+        $entity->name = (string)$data['name'];
196
+        $entity->secret = (string)$data['secret'];
197
+        $entity->url = (string)$data['url'];
198
+        $entity->email = (string)$data['email'];
199
+        $entity->dateCreated = new DateTime($data['date_created']);
200
+        $entity->bflags = (int)$data['bflags'];
201 201
 
202 202
         return $entity;
203 203
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SysLoginsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
188 188
     public function getEntityFromDatabaseArray(array $data)
189 189
     {
190 190
         $entity = new SysLoginsEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->dateCreated =  new DateTime($data['date_created']);
193
-        $entity->remoteAddr = (string) $data['remote_addr'];
194
-        $entity->success = (int) $data['success'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->dateCreated = new DateTime($data['date_created']);
193
+        $entity->remoteAddr = (string)$data['remote_addr'];
194
+        $entity->success = (int)$data['success'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/UserRepository.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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
     }
@@ -231,53 +231,53 @@  discard block
 block discarded – undo
231 231
     public function getEntityFromDatabaseArray(array $data)
232 232
     {
233 233
         $entity = new UserEntity();
234
-        $entity->userId = (int) $data['user_id'];
235
-        $entity->uuid = (string) $data['uuid'];
236
-        $entity->node = (int) $data['node'];
237
-        $entity->dateCreated =  new DateTime($data['date_created']);
238
-        $entity->lastModified =  new DateTime($data['last_modified']);
239
-        $entity->lastLogin =  new DateTime($data['last_login']);
240
-        $entity->username = (string) $data['username'];
241
-        $entity->password = (string) $data['password'];
242
-        $entity->adminPassword = (string) $data['admin_password'];
243
-        $entity->roles = (string) $data['roles'];
244
-        $entity->email = (string) $data['email'];
245
-        $entity->emailProblems = (int) $data['email_problems'];
246
-        $entity->firstEmailProblem =  new DateTime($data['first_email_problem']);
247
-        $entity->lastEmailProblem =  new DateTime($data['last_email_problem']);
248
-        $entity->mailingProblems = (int) $data['mailing_problems'];
249
-        $entity->acceptMailing = (int) $data['accept_mailing'];
250
-        $entity->usermailSendAddr = (int) $data['usermail_send_addr'];
234
+        $entity->userId = (int)$data['user_id'];
235
+        $entity->uuid = (string)$data['uuid'];
236
+        $entity->node = (int)$data['node'];
237
+        $entity->dateCreated = new DateTime($data['date_created']);
238
+        $entity->lastModified = new DateTime($data['last_modified']);
239
+        $entity->lastLogin = new DateTime($data['last_login']);
240
+        $entity->username = (string)$data['username'];
241
+        $entity->password = (string)$data['password'];
242
+        $entity->adminPassword = (string)$data['admin_password'];
243
+        $entity->roles = (string)$data['roles'];
244
+        $entity->email = (string)$data['email'];
245
+        $entity->emailProblems = (int)$data['email_problems'];
246
+        $entity->firstEmailProblem = new DateTime($data['first_email_problem']);
247
+        $entity->lastEmailProblem = new DateTime($data['last_email_problem']);
248
+        $entity->mailingProblems = (int)$data['mailing_problems'];
249
+        $entity->acceptMailing = (int)$data['accept_mailing'];
250
+        $entity->usermailSendAddr = (int)$data['usermail_send_addr'];
251 251
         $entity->latitude = $data['latitude'];
252 252
         $entity->longitude = $data['longitude'];
253
-        $entity->isActiveFlag = (int) $data['is_active_flag'];
254
-        $entity->lastName = (string) $data['last_name'];
255
-        $entity->firstName = (string) $data['first_name'];
256
-        $entity->country = (string) $data['country'];
257
-        $entity->pmrFlag = (int) $data['pmr_flag'];
258
-        $entity->newPwCode = (string) $data['new_pw_code'];
259
-        $entity->newPwDate =  new DateTime($data['new_pw_date']);
260
-        $entity->newEmailCode = (string) $data['new_email_code'];
261
-        $entity->newEmailDate =  new DateTime($data['new_email_date']);
262
-        $entity->newEmail = (string) $data['new_email'];
263
-        $entity->permanentLoginFlag = (int) $data['permanent_login_flag'];
264
-        $entity->watchmailMode = (int) $data['watchmail_mode'];
265
-        $entity->watchmailHour = (int) $data['watchmail_hour'];
266
-        $entity->watchmailNextmail =  new DateTime($data['watchmail_nextmail']);
267
-        $entity->watchmailDay = (int) $data['watchmail_day'];
268
-        $entity->activationCode = (string) $data['activation_code'];
269
-        $entity->statpicLogo = (int) $data['statpic_logo'];
270
-        $entity->statpicText = (string) $data['statpic_text'];
271
-        $entity->noHtmleditFlag = (int) $data['no_htmledit_flag'];
272
-        $entity->notifyRadius = (int) $data['notify_radius'];
273
-        $entity->notifyOconly = (int) $data['notify_oconly'];
274
-        $entity->language = (string) $data['language'];
275
-        $entity->languageGuessed = (int) $data['language_guessed'];
276
-        $entity->domain = (string) $data['domain'];
253
+        $entity->isActiveFlag = (int)$data['is_active_flag'];
254
+        $entity->lastName = (string)$data['last_name'];
255
+        $entity->firstName = (string)$data['first_name'];
256
+        $entity->country = (string)$data['country'];
257
+        $entity->pmrFlag = (int)$data['pmr_flag'];
258
+        $entity->newPwCode = (string)$data['new_pw_code'];
259
+        $entity->newPwDate = new DateTime($data['new_pw_date']);
260
+        $entity->newEmailCode = (string)$data['new_email_code'];
261
+        $entity->newEmailDate = new DateTime($data['new_email_date']);
262
+        $entity->newEmail = (string)$data['new_email'];
263
+        $entity->permanentLoginFlag = (int)$data['permanent_login_flag'];
264
+        $entity->watchmailMode = (int)$data['watchmail_mode'];
265
+        $entity->watchmailHour = (int)$data['watchmail_hour'];
266
+        $entity->watchmailNextmail = new DateTime($data['watchmail_nextmail']);
267
+        $entity->watchmailDay = (int)$data['watchmail_day'];
268
+        $entity->activationCode = (string)$data['activation_code'];
269
+        $entity->statpicLogo = (int)$data['statpic_logo'];
270
+        $entity->statpicText = (string)$data['statpic_text'];
271
+        $entity->noHtmleditFlag = (int)$data['no_htmledit_flag'];
272
+        $entity->notifyRadius = (int)$data['notify_radius'];
273
+        $entity->notifyOconly = (int)$data['notify_oconly'];
274
+        $entity->language = (string)$data['language'];
275
+        $entity->languageGuessed = (int)$data['language_guessed'];
276
+        $entity->domain = (string)$data['domain'];
277 277
         $entity->admin = $data['admin'];
278
-        $entity->dataLicense = (int) $data['data_license'];
279
-        $entity->description = (string) $data['description'];
280
-        $entity->descHtmledit = (int) $data['desc_htmledit'];
278
+        $entity->dataLicense = (int)$data['data_license'];
279
+        $entity->description = (string)$data['description'];
280
+        $entity->descHtmledit = (int)$data['desc_htmledit'];
281 281
 
282 282
         return $entity;
283 283
     }
Please login to merge, or discard this patch.
local/devel/Repositories/StatCacheLogsRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
     public function getEntityFromDatabaseArray(array $data)
192 192
     {
193 193
         $entity = new StatCacheLogsEntity();
194
-        $entity->cacheId = (int) $data['cache_id'];
195
-        $entity->userId = (int) $data['user_id'];
194
+        $entity->cacheId = (int)$data['cache_id'];
195
+        $entity->userId = (int)$data['user_id'];
196 196
         $entity->found = $data['found'];
197 197
         $entity->notfound = $data['notfound'];
198 198
         $entity->note = $data['note'];
Please login to merge, or discard this patch.
local/devel/Repositories/StatCachesRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -195,13 +195,13 @@  discard block
 block discarded – undo
195 195
     public function getEntityFromDatabaseArray(array $data)
196 196
     {
197 197
         $entity = new StatCachesEntity();
198
-        $entity->cacheId = (int) $data['cache_id'];
198
+        $entity->cacheId = (int)$data['cache_id'];
199 199
         $entity->found = $data['found'];
200 200
         $entity->notfound = $data['notfound'];
201 201
         $entity->note = $data['note'];
202 202
         $entity->willAttend = $data['will_attend'];
203 203
         $entity->maintenance = $data['maintenance'];
204
-        $entity->lastFound =  new DateTime($data['last_found']);
204
+        $entity->lastFound = new DateTime($data['last_found']);
205 205
         $entity->watch = $data['watch'];
206 206
         $entity->ignore = $data['ignore'];
207 207
         $entity->toprating = $data['toprating'];
Please login to merge, or discard this patch.
local/devel/Repositories/Map2DataRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->resultId = (int) $this->connection->lastInsertId();
124
+        $entity->resultId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     public function getEntityFromDatabaseArray(array $data)
187 187
     {
188 188
         $entity = new Map2DataEntity();
189
-        $entity->resultId = (int) $data['result_id'];
190
-        $entity->cacheId = (int) $data['cache_id'];
189
+        $entity->resultId = (int)$data['result_id'];
190
+        $entity->cacheId = (int)$data['cache_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/LoginsRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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,11 +189,11 @@  discard block
 block discarded – undo
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'];
196
-        $entity->timestamp =  new DateTime($data['timestamp']);
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
+        $entity->timestamp = new DateTime($data['timestamp']);
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.