Completed
Pull Request — development (#738)
by Kai
04:36
created
local/devel/Repositories/CacheLogsModifiedRepository.php 1 patch
Spacing   +12 added lines, -12 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
     }
@@ -201,22 +201,22 @@  discard block
 block discarded – undo
201 201
     public function getEntityFromDatabaseArray(array $data)
202 202
     {
203 203
         $entity = new GeoCacheLogsModifiedEntity();
204
-        $entity->id = (int) $data['id'];
205
-        $entity->uuid = (string) $data['uuid'];
206
-        $entity->node = (int) $data['node'];
204
+        $entity->id = (int)$data['id'];
205
+        $entity->uuid = (string)$data['uuid'];
206
+        $entity->node = (int)$data['node'];
207 207
         $entity->dateCreated = new DateTime($data['date_created']);
208 208
         $entity->entryLastModified = new DateTime($data['entry_last_modified']);
209 209
         $entity->lastModified = new DateTime($data['last_modified']);
210 210
         $entity->logLastModified = new DateTime($data['log_last_modified']);
211
-        $entity->cacheId = (int) $data['cache_id'];
212
-        $entity->userId = (int) $data['user_id'];
213
-        $entity->type = (int) $data['type'];
214
-        $entity->ocTeamComment = (int) $data['oc_team_comment'];
211
+        $entity->cacheId = (int)$data['cache_id'];
212
+        $entity->userId = (int)$data['user_id'];
213
+        $entity->type = (int)$data['type'];
214
+        $entity->ocTeamComment = (int)$data['oc_team_comment'];
215 215
         $entity->date = new DateTime($data['date']);
216
-        $entity->needsMaintenance = (int) $data['needs_maintenance'];
217
-        $entity->listingOutdated = (int) $data['listing_outdated'];
218
-        $entity->text = (string) $data['text'];
219
-        $entity->textHtml = (int) $data['text_html'];
216
+        $entity->needsMaintenance = (int)$data['needs_maintenance'];
217
+        $entity->listingOutdated = (int)$data['listing_outdated'];
218
+        $entity->text = (string)$data['text'];
219
+        $entity->textHtml = (int)$data['text_html'];
220 220
         $entity->modifyDate = new DateTime($data['modify_date']);
221 221
 
222 222
         return $entity;
Please login to merge, or discard this patch.
local/devel/Repositories/LogentriesTypesRepository.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 LogentriesTypesEntity();
190
-        $entity->id = (int) $data['id'];
191
-        $entity->module = (string) $data['module'];
192
-        $entity->eventname = (string) $data['eventname'];
190
+        $entity->id = (int)$data['id'];
191
+        $entity->module = (string)$data['module'];
192
+        $entity->eventname = (string)$data['eventname'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkMoveWaypointRepository.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->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
 block discarded – undo
186 186
     public function getEntityFromDatabaseArray(array $data)
187 187
     {
188 188
         $entity = new GkMoveWaypointEntity();
189
-        $entity->id = (int) $data['id'];
190
-        $entity->wp = (string) $data['wp'];
189
+        $entity->id = (int)$data['id'];
190
+        $entity->wp = (string)$data['wp'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SysconfigRepository.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->name = (int) $this->connection->lastInsertId();
124
+        $entity->name = (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 SysconfigEntity();
189
-        $entity->name = (string) $data['name'];
190
-        $entity->value = (string) $data['value'];
189
+        $entity->name = (string)$data['name'];
190
+        $entity->value = (string)$data['value'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbAreasRepository.php 1 patch
Spacing   +12 added lines, -12 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->locId = (int) $this->connection->lastInsertId();
124
+        $entity->locId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -198,20 +198,20 @@  discard block
 block discarded – undo
198 198
     public function getEntityFromDatabaseArray(array $data)
199 199
     {
200 200
         $entity = new GeodbAreasEntity();
201
-        $entity->locId = (int) $data['loc_id'];
202
-        $entity->areaId = (int) $data['area_id'];
203
-        $entity->polygonId = (int) $data['polygon_id'];
204
-        $entity->polSeqNo = (int) $data['pol_seq_no'];
201
+        $entity->locId = (int)$data['loc_id'];
202
+        $entity->areaId = (int)$data['area_id'];
203
+        $entity->polygonId = (int)$data['polygon_id'];
204
+        $entity->polSeqNo = (int)$data['pol_seq_no'];
205 205
         $entity->excludeArea = $data['exclude_area'];
206
-        $entity->areaType = (int) $data['area_type'];
207
-        $entity->areaSubtype = (int) $data['area_subtype'];
208
-        $entity->coordType = (int) $data['coord_type'];
209
-        $entity->coordSubtype = (int) $data['coord_subtype'];
210
-        $entity->resolution = (int) $data['resolution'];
206
+        $entity->areaType = (int)$data['area_type'];
207
+        $entity->areaSubtype = (int)$data['area_subtype'];
208
+        $entity->coordType = (int)$data['coord_type'];
209
+        $entity->coordSubtype = (int)$data['coord_subtype'];
210
+        $entity->resolution = (int)$data['resolution'];
211 211
         $entity->validSince = new DateTime($data['valid_since']);
212
-        $entity->dateTypeSince = (int) $data['date_type_since'];
212
+        $entity->dateTypeSince = (int)$data['date_type_since'];
213 213
         $entity->validUntil = new DateTime($data['valid_until']);
214
-        $entity->dateTypeUntil = (int) $data['date_type_until'];
214
+        $entity->dateTypeUntil = (int)$data['date_type_until'];
215 215
 
216 216
         return $entity;
217 217
     }
Please login to merge, or discard this patch.
local/devel/Repositories/WsSessionsRepository.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
     }
@@ -190,12 +190,12 @@  discard block
 block discarded – undo
190 190
     public function getEntityFromDatabaseArray(array $data)
191 191
     {
192 192
         $entity = new WsSessionsEntity();
193
-        $entity->id = (string) $data['id'];
194
-        $entity->userId = (int) $data['user_id'];
193
+        $entity->id = (string)$data['id'];
194
+        $entity->userId = (int)$data['user_id'];
195 195
         $entity->dateCreated = new DateTime($data['date_created']);
196 196
         $entity->lastUsage = new DateTime($data['last_usage']);
197
-        $entity->valid = (int) $data['valid'];
198
-        $entity->closed = (int) $data['closed'];
197
+        $entity->valid = (int)$data['valid'];
198
+        $entity->closed = (int)$data['closed'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SysLoginsRepository.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
     }
@@ -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'];
191
+        $entity->id = (int)$data['id'];
192 192
         $entity->dateCreated = new DateTime($data['date_created']);
193
-        $entity->remoteAddr = (string) $data['remote_addr'];
194
-        $entity->success = (int) $data['success'];
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/CacheListWatchesRepository.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->cacheListId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheListId = (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 GeoCacheListWatchesEntity();
189
-        $entity->cacheListId = (int) $data['cache_list_id'];
190
-        $entity->userId = (int) $data['user_id'];
189
+        $entity->cacheListId = (int)$data['cache_list_id'];
190
+        $entity->userId = (int)$data['user_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheLogsRestoredRepository.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
     }
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
     public function getEntityFromDatabaseArray(array $data)
190 190
     {
191 191
         $entity = new GeoCacheLogsRestoredEntity();
192
-        $entity->id = (int) $data['id'];
192
+        $entity->id = (int)$data['id'];
193 193
         $entity->dateModified = new DateTime($data['date_modified']);
194
-        $entity->cacheId = (int) $data['cache_id'];
195
-        $entity->originalId = (int) $data['original_id'];
196
-        $entity->restoredBy = (int) $data['restored_by'];
194
+        $entity->cacheId = (int)$data['cache_id'];
195
+        $entity->originalId = (int)$data['original_id'];
196
+        $entity->restoredBy = (int)$data['restored_by'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.