Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/GeodbTypeNamesRepository.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->typeId = (int) $this->connection->lastInsertId();
124
+        $entity->typeId = (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 GeodbTypeNamesEntity();
190
-        $entity->typeId = (int) $data['type_id'];
191
-        $entity->typeLocale = (string) $data['type_locale'];
192
-        $entity->name = (string) $data['name'];
190
+        $entity->typeId = (int)$data['type_id'];
191
+        $entity->typeLocale = (string)$data['type_locale'];
192
+        $entity->name = (string)$data['name'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheLogsRestoredRepository.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 GeoCacheLogsRestoredEntity();
192
-        $entity->id = (int) $data['id'];
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'];
192
+        $entity->id = (int)$data['id'];
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'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CachesAttributesModifiedRepository.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->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (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 GeoCachesAttributesModifiedEntity();
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->attribId = (int) $data['attrib_id'];
194
-        $entity->dateModified =  new DateTime($data['date_modified']);
195
-        $entity->wasSet = (int) $data['was_set'];
196
-        $entity->restoredBy = (int) $data['restored_by'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->attribId = (int)$data['attrib_id'];
194
+        $entity->dateModified = new DateTime($data['date_modified']);
195
+        $entity->wasSet = (int)$data['was_set'];
196
+        $entity->restoredBy = (int)$data['restored_by'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CountriesRepository.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->short = (int) $this->connection->lastInsertId();
124
+        $entity->short = (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 CountriesEntity();
198
-        $entity->short = (string) $data['short'];
199
-        $entity->name = (string) $data['name'];
200
-        $entity->transId = (int) $data['trans_id'];
201
-        $entity->de = (string) $data['de'];
202
-        $entity->en = (string) $data['en'];
203
-        $entity->listDefaultDe = (int) $data['list_default_de'];
204
-        $entity->sortDe = (string) $data['sort_de'];
205
-        $entity->listDefaultEn = (int) $data['list_default_en'];
206
-        $entity->sortEn = (string) $data['sort_en'];
207
-        $entity->admDisplay2 = (int) $data['adm_display2'];
208
-        $entity->admDisplay3 = (int) $data['adm_display3'];
198
+        $entity->short = (string)$data['short'];
199
+        $entity->name = (string)$data['name'];
200
+        $entity->transId = (int)$data['trans_id'];
201
+        $entity->de = (string)$data['de'];
202
+        $entity->en = (string)$data['en'];
203
+        $entity->listDefaultDe = (int)$data['list_default_de'];
204
+        $entity->sortDe = (string)$data['sort_de'];
205
+        $entity->listDefaultEn = (int)$data['list_default_en'];
206
+        $entity->sortEn = (string)$data['sort_en'];
207
+        $entity->admDisplay2 = (int)$data['adm_display2'];
208
+        $entity->admDisplay3 = (int)$data['adm_display3'];
209 209
 
210 210
         return $entity;
211 211
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheLocationRepository.php 1 patch
Spacing   +11 added lines, -11 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
     }
@@ -194,16 +194,16 @@  discard block
 block discarded – undo
194 194
     public function getEntityFromDatabaseArray(array $data)
195 195
     {
196 196
         $entity = new GeoCacheLocationEntity();
197
-        $entity->cacheId = (int) $data['cache_id'];
198
-        $entity->lastModified =  new DateTime($data['last_modified']);
199
-        $entity->adm1 = (string) $data['adm1'];
200
-        $entity->adm2 = (string) $data['adm2'];
201
-        $entity->adm3 = (string) $data['adm3'];
202
-        $entity->adm4 = (string) $data['adm4'];
203
-        $entity->code1 = (string) $data['code1'];
204
-        $entity->code2 = (string) $data['code2'];
205
-        $entity->code3 = (string) $data['code3'];
206
-        $entity->code4 = (string) $data['code4'];
197
+        $entity->cacheId = (int)$data['cache_id'];
198
+        $entity->lastModified = new DateTime($data['last_modified']);
199
+        $entity->adm1 = (string)$data['adm1'];
200
+        $entity->adm2 = (string)$data['adm2'];
201
+        $entity->adm3 = (string)$data['adm3'];
202
+        $entity->adm4 = (string)$data['adm4'];
203
+        $entity->code1 = (string)$data['code1'];
204
+        $entity->code2 = (string)$data['code2'];
205
+        $entity->code3 = (string)$data['code3'];
206
+        $entity->code4 = (string)$data['code4'];
207 207
 
208 208
         return $entity;
209 209
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SysSessionsRepository.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->uuid = (int) $this->connection->lastInsertId();
124
+        $entity->uuid = (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 SysSessionsEntity();
191
-        $entity->uuid = (string) $data['uuid'];
192
-        $entity->userId = (int) $data['user_id'];
193
-        $entity->permanent = (int) $data['permanent'];
194
-        $entity->lastLogin =  new DateTime($data['last_login']);
191
+        $entity->uuid = (string)$data['uuid'];
192
+        $entity->userId = (int)$data['user_id'];
193
+        $entity->permanent = (int)$data['permanent'];
194
+        $entity->lastLogin = new DateTime($data['last_login']);
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiVarsRepository.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->var = (int) $this->connection->lastInsertId();
124
+        $entity->var = (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 OkapiVarsEntity();
189
-        $entity->var = (string) $data['var'];
190
-        $entity->value = (string) $data['value'];
189
+        $entity->var = (string)$data['var'];
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/SysTransTextRepository.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->transId = (int) $this->connection->lastInsertId();
124
+        $entity->transId = (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 SysTransTextEntity();
191
-        $entity->transId = (int) $data['trans_id'];
192
-        $entity->lang = (string) $data['lang'];
193
-        $entity->text = (string) $data['text'];
194
-        $entity->lastModified =  new DateTime($data['last_modified']);
191
+        $entity->transId = (int)$data['trans_id'];
192
+        $entity->lang = (string)$data['lang'];
193
+        $entity->text = (string)$data['text'];
194
+        $entity->lastModified = new DateTime($data['last_modified']);
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/WaypointReportsRepository.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->reportId = (int) $this->connection->lastInsertId();
124
+        $entity->reportId = (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 WaypointReportsEntity();
193
-        $entity->reportId = (int) $data['report_id'];
194
-        $entity->dateReported =  new DateTime($data['date_reported']);
195
-        $entity->wpOc = (string) $data['wp_oc'];
196
-        $entity->wpExternal = (string) $data['wp_external'];
197
-        $entity->source = (string) $data['source'];
198
-        $entity->gcwpProcessed = (int) $data['gcwp_processed'];
193
+        $entity->reportId = (int)$data['report_id'];
194
+        $entity->dateReported = new DateTime($data['date_reported']);
195
+        $entity->wpOc = (string)$data['wp_oc'];
196
+        $entity->wpExternal = (string)$data['wp_external'];
197
+        $entity->source = (string)$data['source'];
198
+        $entity->gcwpProcessed = (int)$data['gcwp_processed'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.