Completed
Pull Request — development (#720)
by Thomas
24:05
created
local/devel/Repositories/GkMoveWaypointRepository.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 GkMoveWaypointEntity();
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/GeodbChangelogRepository.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->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 GeodbChangelogEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->datum =  new DateTime($data['datum']);
194
-        $entity->beschreibung = (string) $data['beschreibung'];
195
-        $entity->autor = (string) $data['autor'];
196
-        $entity->version = (string) $data['version'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->datum = new DateTime($data['datum']);
194
+        $entity->beschreibung = (string)$data['beschreibung'];
195
+        $entity->autor = (string)$data['autor'];
196
+        $entity->version = (string)$data['version'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/XmlsessionRepository.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   +13 added lines, -13 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
     }
@@ -196,18 +196,18 @@  discard block
 block discarded – undo
196 196
     public function getEntityFromDatabaseArray(array $data)
197 197
     {
198 198
         $entity = new XmlsessionEntity();
199
-        $entity->id = (int) $data['id'];
200
-        $entity->dateCreated =  new DateTime($data['date_created']);
201
-        $entity->lastUse =  new DateTime($data['last_use']);
202
-        $entity->users = (int) $data['users'];
203
-        $entity->caches = (int) $data['caches'];
204
-        $entity->cachedescs = (int) $data['cachedescs'];
205
-        $entity->cachelogs = (int) $data['cachelogs'];
206
-        $entity->pictures = (int) $data['pictures'];
207
-        $entity->removedobjects = (int) $data['removedobjects'];
208
-        $entity->modifiedSince =  new DateTime($data['modified_since']);
209
-        $entity->cleaned = (int) $data['cleaned'];
210
-        $entity->agent = (string) $data['agent'];
199
+        $entity->id = (int)$data['id'];
200
+        $entity->dateCreated = new DateTime($data['date_created']);
201
+        $entity->lastUse = new DateTime($data['last_use']);
202
+        $entity->users = (int)$data['users'];
203
+        $entity->caches = (int)$data['caches'];
204
+        $entity->cachedescs = (int)$data['cachedescs'];
205
+        $entity->cachelogs = (int)$data['cachelogs'];
206
+        $entity->pictures = (int)$data['pictures'];
207
+        $entity->removedobjects = (int)$data['removedobjects'];
208
+        $entity->modifiedSince = new DateTime($data['modified_since']);
209
+        $entity->cleaned = (int)$data['cleaned'];
210
+        $entity->agent = (string)$data['agent'];
211 211
 
212 212
         return $entity;
213 213
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbLocationsRepository.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->locId = (int) $this->connection->lastInsertId();
124
+        $entity->locId = (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 GeodbLocationsEntity();
189
-        $entity->locId = (int) $data['loc_id'];
190
-        $entity->locType = (int) $data['loc_type'];
189
+        $entity->locId = (int)$data['loc_id'];
190
+        $entity->locType = (int)$data['loc_type'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkUserRepository.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 GkUserEntity();
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/CacheNpaAreasRepository.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->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 GeoCacheNpaAreasEntity();
190
-        $entity->cacheId = (int) $data['cache_id'];
191
-        $entity->npaId = (int) $data['npa_id'];
192
-        $entity->calculated = (int) $data['calculated'];
190
+        $entity->cacheId = (int)$data['cache_id'];
191
+        $entity->npaId = (int)$data['npa_id'];
192
+        $entity->calculated = (int)$data['calculated'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheDescRepository.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   +13 added lines, -13 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
     }
@@ -196,18 +196,18 @@  discard block
 block discarded – undo
196 196
     public function getEntityFromDatabaseArray(array $data)
197 197
     {
198 198
         $entity = new GeoCacheDescEntity();
199
-        $entity->id = (int) $data['id'];
200
-        $entity->uuid = (string) $data['uuid'];
201
-        $entity->node = (int) $data['node'];
202
-        $entity->dateCreated =  new DateTime($data['date_created']);
203
-        $entity->lastModified =  new DateTime($data['last_modified']);
204
-        $entity->cacheId = (int) $data['cache_id'];
205
-        $entity->language = (string) $data['language'];
206
-        $entity->desc = (string) $data['desc'];
207
-        $entity->descHtml = (int) $data['desc_html'];
208
-        $entity->descHtmledit = (int) $data['desc_htmledit'];
209
-        $entity->hint = (string) $data['hint'];
210
-        $entity->shortDesc = (string) $data['short_desc'];
199
+        $entity->id = (int)$data['id'];
200
+        $entity->uuid = (string)$data['uuid'];
201
+        $entity->node = (int)$data['node'];
202
+        $entity->dateCreated = new DateTime($data['date_created']);
203
+        $entity->lastModified = new DateTime($data['last_modified']);
204
+        $entity->cacheId = (int)$data['cache_id'];
205
+        $entity->language = (string)$data['language'];
206
+        $entity->desc = (string)$data['desc'];
207
+        $entity->descHtml = (int)$data['desc_html'];
208
+        $entity->descHtmledit = (int)$data['desc_htmledit'];
209
+        $entity->hint = (string)$data['hint'];
210
+        $entity->shortDesc = (string)$data['short_desc'];
211 211
 
212 212
         return $entity;
213 213
     }
Please login to merge, or discard this patch.
local/devel/Repositories/RemovedObjectsRepository.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 RemovedObjectsEntity();
193
-        $entity->id = (int) $data['id'];
194
-        $entity->localID = (int) $data['localID'];
195
-        $entity->uuid = (string) $data['uuid'];
196
-        $entity->type = (int) $data['type'];
197
-        $entity->removedDate =  new DateTime($data['removed_date']);
198
-        $entity->node = (int) $data['node'];
193
+        $entity->id = (int)$data['id'];
194
+        $entity->localID = (int)$data['localID'];
195
+        $entity->uuid = (string)$data['uuid'];
196
+        $entity->type = (int)$data['type'];
197
+        $entity->removedDate = new DateTime($data['removed_date']);
198
+        $entity->node = (int)$data['node'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheWaypointPoolRepository.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->wpOc = (int) $this->connection->lastInsertId();
124
+        $entity->wpOc = (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 GeoCacheWaypointPoolEntity();
189
-        $entity->wpOc = (string) $data['wp_oc'];
190
-        $entity->uuid = (string) $data['uuid'];
189
+        $entity->wpOc = (string)$data['wp_oc'];
190
+        $entity->uuid = (string)$data['uuid'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.