Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/CacheListsRepository.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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (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 GeoCacheListsEntity();
200
-        $entity->id = (int) $data['id'];
201
-        $entity->uuid = (string) $data['uuid'];
202
-        $entity->node = (int) $data['node'];
203
-        $entity->userId = (int) $data['user_id'];
204
-        $entity->dateCreated =  new DateTime($data['date_created']);
205
-        $entity->lastModified =  new DateTime($data['last_modified']);
206
-        $entity->lastAdded =  new DateTime($data['last_added']);
207
-        $entity->lastStateChange =  new DateTime($data['last_state_change']);
208
-        $entity->name = (string) $data['name'];
209
-        $entity->isPublic = (int) $data['is_public'];
210
-        $entity->description = (string) $data['description'];
211
-        $entity->descHtmledit = (int) $data['desc_htmledit'];
212
-        $entity->password = (string) $data['password'];
200
+        $entity->id = (int)$data['id'];
201
+        $entity->uuid = (string)$data['uuid'];
202
+        $entity->node = (int)$data['node'];
203
+        $entity->userId = (int)$data['user_id'];
204
+        $entity->dateCreated = new DateTime($data['date_created']);
205
+        $entity->lastModified = new DateTime($data['last_modified']);
206
+        $entity->lastAdded = new DateTime($data['last_added']);
207
+        $entity->lastStateChange = new DateTime($data['last_state_change']);
208
+        $entity->name = (string)$data['name'];
209
+        $entity->isPublic = (int)$data['is_public'];
210
+        $entity->description = (string)$data['description'];
211
+        $entity->descHtmledit = (int)$data['desc_htmledit'];
212
+        $entity->password = (string)$data['password'];
213 213
 
214 214
         return $entity;
215 215
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheAdoptionsRepository.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 GeoCacheAdoptionsEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->cacheId = (int) $data['cache_id'];
194
-        $entity->date =  new DateTime($data['date']);
195
-        $entity->fromUserId = (int) $data['from_user_id'];
196
-        $entity->toUserId = (int) $data['to_user_id'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->cacheId = (int)$data['cache_id'];
194
+        $entity->date = new DateTime($data['date']);
195
+        $entity->fromUserId = (int)$data['from_user_id'];
196
+        $entity->toUserId = (int)$data['to_user_id'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkItemWaypointRepository.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 GkItemWaypointEntity();
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/CachesAttributesRepository.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 GeoCachesAttributesEntity();
189
-        $entity->cacheId = (int) $data['cache_id'];
190
-        $entity->attribId = (int) $data['attrib_id'];
189
+        $entity->cacheId = (int)$data['cache_id'];
190
+        $entity->attribId = (int)$data['attrib_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CoordinatesTypeRepository.php 1 patch
Spacing   +7 added lines, -7 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 CoordinatesTypeEntity();
193
-        $entity->id = (int) $data['id'];
194
-        $entity->name = (string) $data['name'];
195
-        $entity->transId = (int) $data['trans_id'];
196
-        $entity->image = (string) $data['image'];
197
-        $entity->preposition = (string) $data['preposition'];
198
-        $entity->ppTransId = (int) $data['pp_trans_id'];
193
+        $entity->id = (int)$data['id'];
194
+        $entity->name = (string)$data['name'];
195
+        $entity->transId = (int)$data['trans_id'];
196
+        $entity->image = (string)$data['image'];
197
+        $entity->preposition = (string)$data['preposition'];
198
+        $entity->ppTransId = (int)$data['pp_trans_id'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/WsTanRepository.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->session = (int) $this->connection->lastInsertId();
124
+        $entity->session = (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 WsTanEntity();
189
-        $entity->session = (string) $data['session'];
190
-        $entity->tan = (string) $data['tan'];
189
+        $entity->session = (string)$data['session'];
190
+        $entity->tan = (string)$data['tan'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheTypeRepository.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 GeoCacheTypeEntity();
198
-        $entity->id = (int) $data['id'];
199
-        $entity->name = (string) $data['name'];
200
-        $entity->transId = (int) $data['trans_id'];
201
-        $entity->ordinal = (int) $data['ordinal'];
202
-        $entity->short = (string) $data['short'];
203
-        $entity->de = (string) $data['de'];
204
-        $entity->en = (string) $data['en'];
205
-        $entity->iconLarge = (string) $data['icon_large'];
206
-        $entity->short2 = (string) $data['short2'];
207
-        $entity->short2TransId = (int) $data['short2_trans_id'];
208
-        $entity->kmlName = (string) $data['kml_name'];
198
+        $entity->id = (int)$data['id'];
199
+        $entity->name = (string)$data['name'];
200
+        $entity->transId = (int)$data['trans_id'];
201
+        $entity->ordinal = (int)$data['ordinal'];
202
+        $entity->short = (string)$data['short'];
203
+        $entity->de = (string)$data['de'];
204
+        $entity->en = (string)$data['en'];
205
+        $entity->iconLarge = (string)$data['icon_large'];
206
+        $entity->short2 = (string)$data['short2'];
207
+        $entity->short2TransId = (int)$data['short2_trans_id'];
208
+        $entity->kmlName = (string)$data['kml_name'];
209 209
 
210 210
         return $entity;
211 211
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheRatingRepository.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->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (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 GeoCacheRatingEntity();
190
-        $entity->cacheId = (int) $data['cache_id'];
191
-        $entity->userId = (int) $data['user_id'];
192
-        $entity->ratingDate =  new DateTime($data['rating_date']);
190
+        $entity->cacheId = (int)$data['cache_id'];
191
+        $entity->userId = (int)$data['user_id'];
192
+        $entity->ratingDate = new DateTime($data['rating_date']);
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/Map2ResultRepository.php 1 patch
Spacing   +9 added lines, -9 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
     }
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
     public function getEntityFromDatabaseArray(array $data)
193 193
     {
194 194
         $entity = new Map2ResultEntity();
195
-        $entity->resultId = (int) $data['result_id'];
196
-        $entity->slaveId = (int) $data['slave_id'];
197
-        $entity->sqlchecksum = (int) $data['sqlchecksum'];
198
-        $entity->sqlquery = (string) $data['sqlquery'];
199
-        $entity->sharedCounter = (int) $data['shared_counter'];
200
-        $entity->requestCounter = (int) $data['request_counter'];
201
-        $entity->dateCreated =  new DateTime($data['date_created']);
202
-        $entity->dateLastqueried =  new DateTime($data['date_lastqueried']);
195
+        $entity->resultId = (int)$data['result_id'];
196
+        $entity->slaveId = (int)$data['slave_id'];
197
+        $entity->sqlchecksum = (int)$data['sqlchecksum'];
198
+        $entity->sqlquery = (string)$data['sqlquery'];
199
+        $entity->sharedCounter = (int)$data['shared_counter'];
200
+        $entity->requestCounter = (int)$data['request_counter'];
201
+        $entity->dateCreated = new DateTime($data['date_created']);
202
+        $entity->dateLastqueried = new DateTime($data['date_lastqueried']);
203 203
 
204 204
         return $entity;
205 205
     }
Please login to merge, or discard this patch.