Completed
Push — development ( acc00d...783378 )
by Thomas
18s
created
htdocs/src/Oc/GeoCache/Persistence/GeoCache/GeoCacheRepository.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $databaseArray
185 185
         );
186 186
 
187
-        $entity->cacheId = (int) $this->connection->lastInsertId();
187
+        $entity->cacheId = (int)$this->connection->lastInsertId();
188 188
 
189 189
         return $entity;
190 190
     }
@@ -298,38 +298,38 @@  discard block
 block discarded – undo
298 298
         $entity = new GeoCacheEntity();
299 299
         $entity->cacheId = $data['cache_id'];
300 300
         $entity->uuid = $data['uuid'];
301
-        $entity->node = (int) $data['node'];
301
+        $entity->node = (int)$data['node'];
302 302
         $entity->dateCreated = new DateTime($data['date_created']);
303
-        $entity->isPublishdate = (bool) $data['is_publishdate'];
303
+        $entity->isPublishdate = (bool)$data['is_publishdate'];
304 304
         $entity->lastModified = new DateTime($data['last_modified']);
305
-        $entity->okapiSyncbase = (int) $data['okapi_syncbase'];
305
+        $entity->okapiSyncbase = (int)$data['okapi_syncbase'];
306 306
         $entity->listingLastModified = new DateTime($data['listing_last_modified']);
307 307
         $entity->metaLastModified = new DateTime($data['meta_last_modified']);
308
-        $entity->userId = (int) $data['user_id'];
308
+        $entity->userId = (int)$data['user_id'];
309 309
         $entity->name = $data['name'];
310
-        $entity->longitude = (double) $data['longitude'];
311
-        $entity->latitude = (double) $data['latitude'];
312
-        $entity->type = (int) $data['type'];
313
-        $entity->status = (int) $data['status'];
310
+        $entity->longitude = (double)$data['longitude'];
311
+        $entity->latitude = (double)$data['latitude'];
312
+        $entity->type = (int)$data['type'];
313
+        $entity->status = (int)$data['status'];
314 314
         $entity->country = $data['country'];
315 315
         $entity->dateHidden = new DateTime($data['date_hidden']);
316
-        $entity->size = (int) $data['size'];
317
-        $entity->difficulty = (int) $data['difficulty'];
318
-        $entity->terrain = (int) $data['terrain'];
316
+        $entity->size = (int)$data['size'];
317
+        $entity->difficulty = (int)$data['difficulty'];
318
+        $entity->terrain = (int)$data['terrain'];
319 319
         $entity->logpw = $data['logpw'];
320
-        $entity->searchTime = (float) $data['search_time'];
321
-        $entity->wayLength = (float) $data['way_length'];
320
+        $entity->searchTime = (float)$data['search_time'];
321
+        $entity->wayLength = (float)$data['way_length'];
322 322
         $entity->wpGc = $data['wp_gc'];
323 323
         $entity->wpGcMaintained = $data['wp_gc_maintained'];
324 324
         $entity->wpOc = $data['wp_oc'];
325 325
         $entity->descLanguages = $data['desc_languages'];
326 326
         $entity->defaultDesclang = $data['default_desclang'];
327 327
         $entity->dateActivate = new DateTime($data['date_activate']);
328
-        $entity->needNpaRecalc = (bool) $data['need_npa_recalc'];
329
-        $entity->showCachelists = (bool) $data['show_cachelists'];
330
-        $entity->protectOldCoords = (bool) $data['protect_old_coords'];
331
-        $entity->needsMaintenance = (bool) $data['needs_maintenance'];
332
-        $entity->listingOutdated = (bool) $data['listing_outdated'];
328
+        $entity->needNpaRecalc = (bool)$data['need_npa_recalc'];
329
+        $entity->showCachelists = (bool)$data['show_cachelists'];
330
+        $entity->protectOldCoords = (bool)$data['protect_old_coords'];
331
+        $entity->needsMaintenance = (bool)$data['needs_maintenance'];
332
+        $entity->listingOutdated = (bool)$data['listing_outdated'];
333 333
         $entity->flagsLastModified = new DateTime($data['flags_last_modified']);
334 334
 
335 335
         return $entity;
Please login to merge, or discard this patch.
local/devel/Repositories/CacheSizeRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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 GeoCacheSizeEntity();
193
-        $entity->id = (int) $data['id'];
194
-        $entity->name = (string) $data['name'];
195
-        $entity->transId = (int) $data['trans_id'];
196
-        $entity->ordinal = (int) $data['ordinal'];
197
-        $entity->de = (string) $data['de'];
198
-        $entity->en = (string) $data['en'];
193
+        $entity->id = (int)$data['id'];
194
+        $entity->name = (string)$data['name'];
195
+        $entity->transId = (int)$data['trans_id'];
196
+        $entity->ordinal = (int)$data['ordinal'];
197
+        $entity->de = (string)$data['de'];
198
+        $entity->en = (string)$data['en'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SearchIndexRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->objectType = (int) $this->connection->lastInsertId();
124
+        $entity->objectType = (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 SearchIndexEntity();
191
-        $entity->objectType = (int) $data['object_type'];
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->hash = (int) $data['hash'];
194
-        $entity->count = (int) $data['count'];
191
+        $entity->objectType = (int)$data['object_type'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->hash = (int)$data['hash'];
194
+        $entity->count = (int)$data['count'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/HelppagesRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->ocpage = (int) $this->connection->lastInsertId();
124
+        $entity->ocpage = (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 HelppagesEntity();
190
-        $entity->ocpage = (string) $data['ocpage'];
191
-        $entity->language = (string) $data['language'];
192
-        $entity->helppage = (string) $data['helppage'];
190
+        $entity->ocpage = (string)$data['ocpage'];
191
+        $entity->language = (string)$data['language'];
192
+        $entity->helppage = (string)$data['helppage'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheStatusModifiedRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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 GeoCacheStatusModifiedEntity();
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->dateModified =  new DateTime($data['date_modified']);
194
-        $entity->oldState = (int) $data['old_state'];
195
-        $entity->newState = (int) $data['new_state'];
196
-        $entity->userId = (int) $data['user_id'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->dateModified = new DateTime($data['date_modified']);
194
+        $entity->oldState = (int)$data['old_state'];
195
+        $entity->newState = (int)$data['new_state'];
196
+        $entity->userId = (int)$data['user_id'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiCacheRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->key = (int) $this->connection->lastInsertId();
124
+        $entity->key = (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 OkapiCacheEntity();
191
-        $entity->key = (string) $data['key'];
191
+        $entity->key = (string)$data['key'];
192 192
         $entity->score = $data['score'];
193
-        $entity->expires =  new DateTime($data['expires']);
194
-        $entity->value = (string) $data['value'];
193
+        $entity->expires = new DateTime($data['expires']);
194
+        $entity->value = (string)$data['value'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkItemTypeRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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 GkItemTypeEntity();
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/CacheAttribRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 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,24 +202,24 @@  discard block
 block discarded – undo
202 202
     public function getEntityFromDatabaseArray(array $data)
203 203
     {
204 204
         $entity = new GeoCacheAttribEntity();
205
-        $entity->id = (int) $data['id'];
206
-        $entity->name = (string) $data['name'];
207
-        $entity->icon = (string) $data['icon'];
208
-        $entity->transId = (int) $data['trans_id'];
209
-        $entity->groupId = (int) $data['group_id'];
210
-        $entity->selectable = (int) $data['selectable'];
211
-        $entity->category = (int) $data['category'];
212
-        $entity->searchDefault = (int) $data['search_default'];
213
-        $entity->default = (int) $data['default'];
214
-        $entity->iconLarge = (string) $data['icon_large'];
215
-        $entity->iconNo = (string) $data['icon_no'];
216
-        $entity->iconUndef = (string) $data['icon_undef'];
217
-        $entity->htmlDesc = (string) $data['html_desc'];
218
-        $entity->htmlDescTransId = (int) $data['html_desc_trans_id'];
219
-        $entity->hidden = (int) $data['hidden'];
220
-        $entity->gcId = (int) $data['gc_id'];
221
-        $entity->gcInc = (int) $data['gc_inc'];
222
-        $entity->gcName = (string) $data['gc_name'];
205
+        $entity->id = (int)$data['id'];
206
+        $entity->name = (string)$data['name'];
207
+        $entity->icon = (string)$data['icon'];
208
+        $entity->transId = (int)$data['trans_id'];
209
+        $entity->groupId = (int)$data['group_id'];
210
+        $entity->selectable = (int)$data['selectable'];
211
+        $entity->category = (int)$data['category'];
212
+        $entity->searchDefault = (int)$data['search_default'];
213
+        $entity->default = (int)$data['default'];
214
+        $entity->iconLarge = (string)$data['icon_large'];
215
+        $entity->iconNo = (string)$data['icon_no'];
216
+        $entity->iconUndef = (string)$data['icon_undef'];
217
+        $entity->htmlDesc = (string)$data['html_desc'];
218
+        $entity->htmlDescTransId = (int)$data['html_desc_trans_id'];
219
+        $entity->hidden = (int)$data['hidden'];
220
+        $entity->gcId = (int)$data['gc_id'];
221
+        $entity->gcInc = (int)$data['gc_inc'];
222
+        $entity->gcName = (string)$data['gc_name'];
223 223
 
224 224
         return $entity;
225 225
     }
Please login to merge, or discard this patch.
local/devel/Repositories/NpaAreasRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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,10 +189,10 @@  discard block
 block discarded – undo
189 189
     public function getEntityFromDatabaseArray(array $data)
190 190
     {
191 191
         $entity = new NpaAreasEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->typeId = (string) $data['type_id'];
194
-        $entity->exclude = (int) $data['exclude'];
195
-        $entity->name = (string) $data['name'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->typeId = (string)$data['type_id'];
194
+        $entity->exclude = (int)$data['exclude'];
195
+        $entity->name = (string)$data['name'];
196 196
         $entity->shape = $data['shape'];
197 197
 
198 198
         return $entity;
Please login to merge, or discard this patch.