Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/PicturesRepository.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
     }
@@ -202,23 +202,23 @@  discard block
 block discarded – undo
202 202
     public function getEntityFromDatabaseArray(array $data)
203 203
     {
204 204
         $entity = new PicturesEntity();
205
-        $entity->id = (int) $data['id'];
206
-        $entity->uuid = (string) $data['uuid'];
207
-        $entity->node = (int) $data['node'];
208
-        $entity->dateCreated =  new DateTime($data['date_created']);
209
-        $entity->lastModified =  new DateTime($data['last_modified']);
210
-        $entity->url = (string) $data['url'];
211
-        $entity->title = (string) $data['title'];
212
-        $entity->lastUrlCheck =  new DateTime($data['last_url_check']);
213
-        $entity->objectId = (int) $data['object_id'];
214
-        $entity->objectType = (int) $data['object_type'];
215
-        $entity->thumbUrl = (string) $data['thumb_url'];
216
-        $entity->thumbLastGenerated =  new DateTime($data['thumb_last_generated']);
217
-        $entity->spoiler = (int) $data['spoiler'];
218
-        $entity->local = (int) $data['local'];
219
-        $entity->unknownFormat = (int) $data['unknown_format'];
220
-        $entity->display = (int) $data['display'];
221
-        $entity->mappreview = (int) $data['mappreview'];
205
+        $entity->id = (int)$data['id'];
206
+        $entity->uuid = (string)$data['uuid'];
207
+        $entity->node = (int)$data['node'];
208
+        $entity->dateCreated = new DateTime($data['date_created']);
209
+        $entity->lastModified = new DateTime($data['last_modified']);
210
+        $entity->url = (string)$data['url'];
211
+        $entity->title = (string)$data['title'];
212
+        $entity->lastUrlCheck = new DateTime($data['last_url_check']);
213
+        $entity->objectId = (int)$data['object_id'];
214
+        $entity->objectType = (int)$data['object_type'];
215
+        $entity->thumbUrl = (string)$data['thumb_url'];
216
+        $entity->thumbLastGenerated = new DateTime($data['thumb_last_generated']);
217
+        $entity->spoiler = (int)$data['spoiler'];
218
+        $entity->local = (int)$data['local'];
219
+        $entity->unknownFormat = (int)$data['unknown_format'];
220
+        $entity->display = (int)$data['display'];
221
+        $entity->mappreview = (int)$data['mappreview'];
222 222
         $entity->seq = $data['seq'];
223 223
 
224 224
         return $entity;
Please login to merge, or discard this patch.
local/devel/Repositories/WatchesWaitingtypesRepository.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 WatchesWaitingtypesEntity();
189
-        $entity->id = (int) $data['id'];
190
-        $entity->watchtype = (string) $data['watchtype'];
189
+        $entity->id = (int)$data['id'];
190
+        $entity->watchtype = (string)$data['watchtype'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/ObjectTypesRepository.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 ObjectTypesEntity();
189
-        $entity->id = (int) $data['id'];
190
-        $entity->name = (string) $data['name'];
189
+        $entity->id = (int)$data['id'];
190
+        $entity->name = (string)$data['name'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/StatUserRepository.php 1 patch
Spacing   +2 added lines, -2 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
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     public function getEntityFromDatabaseArray(array $data)
192 192
     {
193 193
         $entity = new StatUserEntity();
194
-        $entity->userId = (int) $data['user_id'];
194
+        $entity->userId = (int)$data['user_id'];
195 195
         $entity->found = $data['found'];
196 196
         $entity->notfound = $data['notfound'];
197 197
         $entity->note = $data['note'];
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/GkMoveRepository.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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -193,15 +193,15 @@  discard block
 block discarded – undo
193 193
     public function getEntityFromDatabaseArray(array $data)
194 194
     {
195 195
         $entity = new GkMoveEntity();
196
-        $entity->id = (int) $data['id'];
197
-        $entity->itemid = (int) $data['itemid'];
196
+        $entity->id = (int)$data['id'];
197
+        $entity->itemid = (int)$data['itemid'];
198 198
         $entity->latitude = $data['latitude'];
199 199
         $entity->longitude = $data['longitude'];
200
-        $entity->datemoved =  new DateTime($data['datemoved']);
201
-        $entity->datelogged =  new DateTime($data['datelogged']);
202
-        $entity->userid = (int) $data['userid'];
203
-        $entity->comment = (string) $data['comment'];
204
-        $entity->logtypeid = (int) $data['logtypeid'];
200
+        $entity->datemoved = new DateTime($data['datemoved']);
201
+        $entity->datelogged = new DateTime($data['datelogged']);
202
+        $entity->userid = (int)$data['userid'];
203
+        $entity->comment = (string)$data['comment'];
204
+        $entity->logtypeid = (int)$data['logtypeid'];
205 205
 
206 206
         return $entity;
207 207
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CachesModifiedRepository.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->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -197,19 +197,19 @@  discard block
 block discarded – undo
197 197
     public function getEntityFromDatabaseArray(array $data)
198 198
     {
199 199
         $entity = new GeoCachesModifiedEntity();
200
-        $entity->cacheId = (int) $data['cache_id'];
201
-        $entity->dateModified =  new DateTime($data['date_modified']);
202
-        $entity->name = (string) $data['name'];
203
-        $entity->type = (int) $data['type'];
204
-        $entity->dateHidden =  new DateTime($data['date_hidden']);
205
-        $entity->size = (int) $data['size'];
206
-        $entity->difficulty = (int) $data['difficulty'];
207
-        $entity->terrain = (int) $data['terrain'];
200
+        $entity->cacheId = (int)$data['cache_id'];
201
+        $entity->dateModified = new DateTime($data['date_modified']);
202
+        $entity->name = (string)$data['name'];
203
+        $entity->type = (int)$data['type'];
204
+        $entity->dateHidden = new DateTime($data['date_hidden']);
205
+        $entity->size = (int)$data['size'];
206
+        $entity->difficulty = (int)$data['difficulty'];
207
+        $entity->terrain = (int)$data['terrain'];
208 208
         $entity->searchTime = $data['search_time'];
209 209
         $entity->wayLength = $data['way_length'];
210
-        $entity->wpGc = (string) $data['wp_gc'];
211
-        $entity->wpNc = (string) $data['wp_nc'];
212
-        $entity->restoredBy = (int) $data['restored_by'];
210
+        $entity->wpGc = (string)$data['wp_gc'];
211
+        $entity->wpNc = (string)$data['wp_nc'];
212
+        $entity->restoredBy = (int)$data['restored_by'];
213 213
 
214 214
         return $entity;
215 215
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbCoordinatesRepository.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->locId = (int) $this->connection->lastInsertId();
124
+        $entity->locId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -193,15 +193,15 @@  discard block
 block discarded – undo
193 193
     public function getEntityFromDatabaseArray(array $data)
194 194
     {
195 195
         $entity = new GeodbCoordinatesEntity();
196
-        $entity->locId = (int) $data['loc_id'];
196
+        $entity->locId = (int)$data['loc_id'];
197 197
         $entity->lon = $data['lon'];
198 198
         $entity->lat = $data['lat'];
199
-        $entity->coordType = (int) $data['coord_type'];
200
-        $entity->coordSubtype = (int) $data['coord_subtype'];
201
-        $entity->validSince =  new DateTime($data['valid_since']);
202
-        $entity->dateTypeSince = (int) $data['date_type_since'];
203
-        $entity->validUntil =  new DateTime($data['valid_until']);
204
-        $entity->dateTypeUntil = (int) $data['date_type_until'];
199
+        $entity->coordType = (int)$data['coord_type'];
200
+        $entity->coordSubtype = (int)$data['coord_subtype'];
201
+        $entity->validSince = new DateTime($data['valid_since']);
202
+        $entity->dateTypeSince = (int)$data['date_type_since'];
203
+        $entity->validUntil = new DateTime($data['valid_until']);
204
+        $entity->dateTypeUntil = (int)$data['date_type_until'];
205 205
 
206 206
         return $entity;
207 207
     }
Please login to merge, or discard this patch.
local/devel/Repositories/RatingTopsRepository.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
     }
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     public function getEntityFromDatabaseArray(array $data)
187 187
     {
188 188
         $entity = new RatingTopsEntity();
189
-        $entity->cacheId = (int) $data['cache_id'];
190
-        $entity->rating = (int) $data['rating'];
189
+        $entity->cacheId = (int)$data['cache_id'];
190
+        $entity->rating = (int)$data['rating'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.