Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/OkapiSubmittedObjectsRepository.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->objectType = (int) $this->connection->lastInsertId();
124
+        $entity->objectType = (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 OkapiSubmittedObjectsEntity();
190
-        $entity->objectType = (int) $data['object_type'];
191
-        $entity->objectId = (int) $data['object_id'];
192
-        $entity->consumerKey = (string) $data['consumer_key'];
190
+        $entity->objectType = (int)$data['object_type'];
191
+        $entity->objectId = (int)$data['object_id'];
192
+        $entity->consumerKey = (string)$data['consumer_key'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheLogtypeRepository.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->cacheTypeId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheTypeId = (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 GeoCacheLogtypeEntity();
189
-        $entity->cacheTypeId = (int) $data['cache_type_id'];
190
-        $entity->logTypeId = (int) $data['log_type_id'];
189
+        $entity->cacheTypeId = (int)$data['cache_type_id'];
190
+        $entity->logTypeId = (int)$data['log_type_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiStatsMonthlyRepository.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->consumerKey = (int) $this->connection->lastInsertId();
124
+        $entity->consumerKey = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -192,12 +192,12 @@  discard block
 block discarded – undo
192 192
     public function getEntityFromDatabaseArray(array $data)
193 193
     {
194 194
         $entity = new OkapiStatsMonthlyEntity();
195
-        $entity->consumerKey = (string) $data['consumer_key'];
196
-        $entity->userId = (int) $data['user_id'];
197
-        $entity->periodStart =  new DateTime($data['period_start']);
198
-        $entity->serviceName = (string) $data['service_name'];
199
-        $entity->totalCalls = (int) $data['total_calls'];
200
-        $entity->httpCalls = (int) $data['http_calls'];
195
+        $entity->consumerKey = (string)$data['consumer_key'];
196
+        $entity->userId = (int)$data['user_id'];
197
+        $entity->periodStart = new DateTime($data['period_start']);
198
+        $entity->serviceName = (string)$data['service_name'];
199
+        $entity->totalCalls = (int)$data['total_calls'];
200
+        $entity->httpCalls = (int)$data['http_calls'];
201 201
         $entity->totalRuntime = $data['total_runtime'];
202 202
         $entity->httpRuntime = $data['http_runtime'];
203 203
 
Please login to merge, or discard this patch.
local/devel/Repositories/WatchesWaitingRepository.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
     }
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
     public function getEntityFromDatabaseArray(array $data)
192 192
     {
193 193
         $entity = new WatchesWaitingEntity();
194
-        $entity->id = (int) $data['id'];
195
-        $entity->userId = (int) $data['user_id'];
196
-        $entity->objectId = (int) $data['object_id'];
197
-        $entity->objectType = (int) $data['object_type'];
198
-        $entity->dateCreated =  new DateTime($data['date_created']);
199
-        $entity->watchtext = (string) $data['watchtext'];
200
-        $entity->watchtype = (int) $data['watchtype'];
194
+        $entity->id = (int)$data['id'];
195
+        $entity->userId = (int)$data['user_id'];
196
+        $entity->objectId = (int)$data['object_id'];
197
+        $entity->objectType = (int)$data['object_type'];
198
+        $entity->dateCreated = new DateTime($data['date_created']);
199
+        $entity->watchtext = (string)$data['watchtext'];
200
+        $entity->watchtype = (int)$data['watchtype'];
201 201
 
202 202
         return $entity;
203 203
     }
Please login to merge, or discard this patch.
local/devel/Repositories/NotifyWaitingRepository.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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (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 NotifyWaitingEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->userId = (int) $data['user_id'];
194
-        $entity->type = (int) $data['type'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->userId = (int)$data['user_id'];
194
+        $entity->type = (int)$data['type'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheIgnoreRepository.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 GeoCacheIgnoreEntity();
189
-        $entity->cacheId = (int) $data['cache_id'];
190
-        $entity->userId = (int) $data['user_id'];
189
+        $entity->cacheId = (int)$data['cache_id'];
190
+        $entity->userId = (int)$data['user_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkItemRepository.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
     }
@@ -194,16 +194,16 @@  discard block
 block discarded – undo
194 194
     public function getEntityFromDatabaseArray(array $data)
195 195
     {
196 196
         $entity = new GkItemEntity();
197
-        $entity->id = (int) $data['id'];
198
-        $entity->name = (string) $data['name'];
199
-        $entity->description = (string) $data['description'];
200
-        $entity->userid = (int) $data['userid'];
201
-        $entity->datecreated =  new DateTime($data['datecreated']);
197
+        $entity->id = (int)$data['id'];
198
+        $entity->name = (string)$data['name'];
199
+        $entity->description = (string)$data['description'];
200
+        $entity->userid = (int)$data['userid'];
201
+        $entity->datecreated = new DateTime($data['datecreated']);
202 202
         $entity->distancetravelled = $data['distancetravelled'];
203 203
         $entity->latitude = $data['latitude'];
204 204
         $entity->longitude = $data['longitude'];
205
-        $entity->typeid = (int) $data['typeid'];
206
-        $entity->stateid = (int) $data['stateid'];
205
+        $entity->typeid = (int)$data['typeid'];
206
+        $entity->stateid = (int)$data['stateid'];
207 207
 
208 208
         return $entity;
209 209
     }
Please login to merge, or discard this patch.
local/devel/Repositories/NpaTypesRepository.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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (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 NpaTypesEntity();
191
-        $entity->id = (string) $data['id'];
192
-        $entity->name = (string) $data['name'];
193
-        $entity->ordinal = (int) $data['ordinal'];
194
-        $entity->noWarning = (int) $data['no_warning'];
191
+        $entity->id = (string)$data['id'];
192
+        $entity->name = (string)$data['name'];
193
+        $entity->ordinal = (int)$data['ordinal'];
194
+        $entity->noWarning = (int)$data['no_warning'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CountriesOptionsRepository.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->country = (int) $this->connection->lastInsertId();
124
+        $entity->country = (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 CountriesOptionsEntity();
193
-        $entity->country = (string) $data['country'];
194
-        $entity->display = (int) $data['display'];
193
+        $entity->country = (string)$data['country'];
194
+        $entity->display = (int)$data['display'];
195 195
         $entity->gmLat = $data['gmLat'];
196 196
         $entity->gmLon = $data['gmLon'];
197
-        $entity->gmZoom = (int) $data['gmZoom'];
198
-        $entity->nodeId = (int) $data['nodeId'];
197
+        $entity->gmZoom = (int)$data['gmZoom'];
198
+        $entity->nodeId = (int)$data['nodeId'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.