Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/OkapiTileCachesRepository.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->z = (int) $this->connection->lastInsertId();
124
+        $entity->z = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -195,17 +195,17 @@  discard block
 block discarded – undo
195 195
     public function getEntityFromDatabaseArray(array $data)
196 196
     {
197 197
         $entity = new OkapiTileCachesEntity();
198
-        $entity->z = (int) $data['z'];
199
-        $entity->x = (int) $data['x'];
200
-        $entity->y = (int) $data['y'];
201
-        $entity->cacheId = (int) $data['cache_id'];
202
-        $entity->z21x = (int) $data['z21x'];
203
-        $entity->z21y = (int) $data['z21y'];
204
-        $entity->status = (int) $data['status'];
205
-        $entity->type = (int) $data['type'];
206
-        $entity->rating = (int) $data['rating'];
207
-        $entity->flags = (int) $data['flags'];
208
-        $entity->nameCrc = (int) $data['name_crc'];
198
+        $entity->z = (int)$data['z'];
199
+        $entity->x = (int)$data['x'];
200
+        $entity->y = (int)$data['y'];
201
+        $entity->cacheId = (int)$data['cache_id'];
202
+        $entity->z21x = (int)$data['z21x'];
203
+        $entity->z21y = (int)$data['z21y'];
204
+        $entity->status = (int)$data['status'];
205
+        $entity->type = (int)$data['type'];
206
+        $entity->rating = (int)$data['rating'];
207
+        $entity->flags = (int)$data['flags'];
208
+        $entity->nameCrc = (int)$data['name_crc'];
209 209
 
210 210
         return $entity;
211 211
     }
Please login to merge, or discard this patch.
local/devel/Repositories/ReplicationOverwritetypesRepository.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 ReplicationOverwritetypesEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->table = (string) $data['table'];
194
-        $entity->field = (string) $data['field'];
195
-        $entity->uuidFieldname = (string) $data['uuid_fieldname'];
196
-        $entity->backupfirst = (int) $data['backupfirst'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->table = (string)$data['table'];
194
+        $entity->field = (string)$data['field'];
195
+        $entity->uuidFieldname = (string)$data['uuid_fieldname'];
196
+        $entity->backupfirst = (int)$data['backupfirst'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiTileStatusRepository.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->z = (int) $this->connection->lastInsertId();
124
+        $entity->z = (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 OkapiTileStatusEntity();
191
-        $entity->z = (int) $data['z'];
192
-        $entity->x = (int) $data['x'];
193
-        $entity->y = (int) $data['y'];
194
-        $entity->status = (int) $data['status'];
191
+        $entity->z = (int)$data['z'];
192
+        $entity->x = (int)$data['x'];
193
+        $entity->y = (int)$data['y'];
194
+        $entity->status = (int)$data['status'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbAreasRepository.php 1 patch
Spacing   +14 added lines, -14 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'];
211
-        $entity->validSince =  new DateTime($data['valid_since']);
212
-        $entity->dateTypeSince = (int) $data['date_type_since'];
213
-        $entity->validUntil =  new DateTime($data['valid_until']);
214
-        $entity->dateTypeUntil = (int) $data['date_type_until'];
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
+        $entity->validSince = new DateTime($data['valid_since']);
212
+        $entity->dateTypeSince = (int)$data['date_type_since'];
213
+        $entity->validUntil = new DateTime($data['valid_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/SysTransRepository.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 SysTransEntity();
190
-        $entity->id = (int) $data['id'];
191
-        $entity->text = (string) $data['text'];
192
-        $entity->lastModified =  new DateTime($data['last_modified']);
190
+        $entity->id = (int)$data['id'];
191
+        $entity->text = (string)$data['text'];
192
+        $entity->lastModified = new DateTime($data['last_modified']);
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbSearchRepository.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 GeodbSearchEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->locId = (int) $data['loc_id'];
194
-        $entity->sort = (string) $data['sort'];
195
-        $entity->simple = (string) $data['simple'];
196
-        $entity->simplehash = (int) $data['simplehash'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->locId = (int)$data['loc_id'];
194
+        $entity->sort = (string)$data['sort'];
195
+        $entity->simple = (string)$data['simple'];
196
+        $entity->simplehash = (int)$data['simplehash'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SearchIndexTimesRepository.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->objectType = (int) $this->connection->lastInsertId();
124
+        $entity->objectType = (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 SearchIndexTimesEntity();
190
-        $entity->objectType = (int) $data['object_type'];
191
-        $entity->objectId = (int) $data['object_id'];
192
-        $entity->lastRefresh =  new DateTime($data['last_refresh']);
190
+        $entity->objectType = (int)$data['object_type'];
191
+        $entity->objectId = (int)$data['object_id'];
192
+        $entity->lastRefresh = new DateTime($data['last_refresh']);
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheLogsModifiedRepository.php 1 patch
Spacing   +18 added lines, -18 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,23 +201,23 @@  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'];
207
-        $entity->dateCreated =  new DateTime($data['date_created']);
208
-        $entity->entryLastModified =  new DateTime($data['entry_last_modified']);
209
-        $entity->lastModified =  new DateTime($data['last_modified']);
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'];
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'];
220
-        $entity->modifyDate =  new DateTime($data['modify_date']);
204
+        $entity->id = (int)$data['id'];
205
+        $entity->uuid = (string)$data['uuid'];
206
+        $entity->node = (int)$data['node'];
207
+        $entity->dateCreated = new DateTime($data['date_created']);
208
+        $entity->entryLastModified = new DateTime($data['entry_last_modified']);
209
+        $entity->lastModified = new DateTime($data['last_modified']);
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'];
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'];
220
+        $entity->modifyDate = new DateTime($data['modify_date']);
221 221
 
222 222
         return $entity;
223 223
     }
Please login to merge, or discard this patch.
local/devel/Repositories/LogTypesRepository.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
     }
@@ -195,17 +195,17 @@  discard block
 block discarded – undo
195 195
     public function getEntityFromDatabaseArray(array $data)
196 196
     {
197 197
         $entity = new LogTypesEntity();
198
-        $entity->id = (int) $data['id'];
199
-        $entity->name = (string) $data['name'];
200
-        $entity->transId = (int) $data['trans_id'];
201
-        $entity->permission = (string) $data['permission'];
202
-        $entity->cacheStatus = (int) $data['cache_status'];
203
-        $entity->de = (string) $data['de'];
204
-        $entity->en = (string) $data['en'];
205
-        $entity->iconSmall = (string) $data['icon_small'];
206
-        $entity->allowRating = (int) $data['allow_rating'];
207
-        $entity->requirePassword = (int) $data['require_password'];
208
-        $entity->maintenanceLogs = (int) $data['maintenance_logs'];
198
+        $entity->id = (int)$data['id'];
199
+        $entity->name = (string)$data['name'];
200
+        $entity->transId = (int)$data['trans_id'];
201
+        $entity->permission = (string)$data['permission'];
202
+        $entity->cacheStatus = (int)$data['cache_status'];
203
+        $entity->de = (string)$data['de'];
204
+        $entity->en = (string)$data['en'];
205
+        $entity->iconSmall = (string)$data['icon_small'];
206
+        $entity->allowRating = (int)$data['allow_rating'];
207
+        $entity->requirePassword = (int)$data['require_password'];
208
+        $entity->maintenanceLogs = (int)$data['maintenance_logs'];
209 209
 
210 210
         return $entity;
211 211
     }
Please login to merge, or discard this patch.