Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/SavedTextsRepository.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 SavedTextsEntity();
193
-        $entity->id = (int) $data['id'];
194
-        $entity->dateCreated =  new DateTime($data['date_created']);
195
-        $entity->objectType = (int) $data['object_type'];
196
-        $entity->objectId = (int) $data['object_id'];
197
-        $entity->subtype = (int) $data['subtype'];
198
-        $entity->text = (string) $data['text'];
193
+        $entity->id = (int)$data['id'];
194
+        $entity->dateCreated = new DateTime($data['date_created']);
195
+        $entity->objectType = (int)$data['object_type'];
196
+        $entity->objectId = (int)$data['object_id'];
197
+        $entity->subtype = (int)$data['subtype'];
198
+        $entity->text = (string)$data['text'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/ReplicationOverwriteRepository.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 ReplicationOverwriteEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->type = (int) $data['type'];
193
-        $entity->value = (string) $data['value'];
194
-        $entity->uuid = (string) $data['uuid'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->type = (int)$data['type'];
193
+        $entity->value = (string)$data['value'];
194
+        $entity->uuid = (string)$data['uuid'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SearchDoublesRepository.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->hash = (int) $this->connection->lastInsertId();
124
+        $entity->hash = (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 SearchDoublesEntity();
190
-        $entity->hash = (int) $data['hash'];
191
-        $entity->word = (string) $data['word'];
192
-        $entity->simple = (string) $data['simple'];
190
+        $entity->hash = (int)$data['hash'];
191
+        $entity->word = (string)$data['word'];
192
+        $entity->simple = (string)$data['simple'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/Mp3Repository.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 Mp3Entity();
198
-        $entity->id = (int) $data['id'];
199
-        $entity->uuid = (string) $data['uuid'];
200
-        $entity->node = (int) $data['node'];
201
-        $entity->dateCreated =  new DateTime($data['date_created']);
202
-        $entity->lastModified =  new DateTime($data['last_modified']);
203
-        $entity->url = (string) $data['url'];
204
-        $entity->title = (string) $data['title'];
205
-        $entity->lastUrlCheck =  new DateTime($data['last_url_check']);
206
-        $entity->objectId = (int) $data['object_id'];
207
-        $entity->local = (int) $data['local'];
208
-        $entity->unknownFormat = (int) $data['unknown_format'];
198
+        $entity->id = (int)$data['id'];
199
+        $entity->uuid = (string)$data['uuid'];
200
+        $entity->node = (int)$data['node'];
201
+        $entity->dateCreated = new DateTime($data['date_created']);
202
+        $entity->lastModified = new DateTime($data['last_modified']);
203
+        $entity->url = (string)$data['url'];
204
+        $entity->title = (string)$data['title'];
205
+        $entity->lastUrlCheck = new DateTime($data['last_url_check']);
206
+        $entity->objectId = (int)$data['object_id'];
207
+        $entity->local = (int)$data['local'];
208
+        $entity->unknownFormat = (int)$data['unknown_format'];
209 209
 
210 210
         return $entity;
211 211
     }
Please login to merge, or discard this patch.
local/devel/Repositories/MigrationVersionsRepository.php 1 patch
Spacing   +2 added lines, -2 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->version = (int) $this->connection->lastInsertId();
124
+        $entity->version = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public function getEntityFromDatabaseArray(array $data)
186 186
     {
187 187
         $entity = new MigrationVersionsEntity();
188
-        $entity->version = (string) $data['version'];
188
+        $entity->version = (string)$data['version'];
189 189
 
190 190
         return $entity;
191 191
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiTokensRepository.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->key = (int) $this->connection->lastInsertId();
124
+        $entity->key = (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 OkapiTokensEntity();
195
-        $entity->key = (string) $data['key'];
196
-        $entity->secret = (string) $data['secret'];
195
+        $entity->key = (string)$data['key'];
196
+        $entity->secret = (string)$data['secret'];
197 197
         $entity->tokenType = $data['token_type'];
198
-        $entity->timestamp = (int) $data['timestamp'];
199
-        $entity->userId = (int) $data['user_id'];
200
-        $entity->consumerKey = (string) $data['consumer_key'];
201
-        $entity->verifier = (string) $data['verifier'];
202
-        $entity->callback = (string) $data['callback'];
198
+        $entity->timestamp = (int)$data['timestamp'];
199
+        $entity->userId = (int)$data['user_id'];
200
+        $entity->consumerKey = (string)$data['consumer_key'];
201
+        $entity->verifier = (string)$data['verifier'];
202
+        $entity->callback = (string)$data['callback'];
203 203
 
204 204
         return $entity;
205 205
     }
Please login to merge, or discard this patch.
local/devel/Repositories/UserStatpicRepository.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->userId = (int) $this->connection->lastInsertId();
124
+        $entity->userId = (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 UserStatpicEntity();
190
-        $entity->userId = (int) $data['user_id'];
191
-        $entity->lang = (string) $data['lang'];
192
-        $entity->dateCreated =  new DateTime($data['date_created']);
190
+        $entity->userId = (int)$data['user_id'];
191
+        $entity->lang = (string)$data['lang'];
192
+        $entity->dateCreated = new DateTime($data['date_created']);
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiStatsHourlyRepository.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 OkapiStatsHourlyEntity();
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/CacheLogsRepository.php 1 patch
Spacing   +21 added lines, -21 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
     }
@@ -205,26 +205,26 @@  discard block
 block discarded – undo
205 205
     public function getEntityFromDatabaseArray(array $data)
206 206
     {
207 207
         $entity = new GeoCacheLogsEntity();
208
-        $entity->id = (int) $data['id'];
209
-        $entity->uuid = (string) $data['uuid'];
210
-        $entity->node = (int) $data['node'];
211
-        $entity->dateCreated =  new DateTime($data['date_created']);
212
-        $entity->entryLastModified =  new DateTime($data['entry_last_modified']);
213
-        $entity->lastModified =  new DateTime($data['last_modified']);
214
-        $entity->okapiSyncbase = (string) $data['okapi_syncbase'];
215
-        $entity->logLastModified =  new DateTime($data['log_last_modified']);
216
-        $entity->cacheId = (int) $data['cache_id'];
217
-        $entity->userId = (int) $data['user_id'];
218
-        $entity->type = (int) $data['type'];
219
-        $entity->ocTeamComment = (int) $data['oc_team_comment'];
220
-        $entity->date =  new DateTime($data['date']);
221
-        $entity->orderDate =  new DateTime($data['order_date']);
222
-        $entity->needsMaintenance = (int) $data['needs_maintenance'];
223
-        $entity->listingOutdated = (int) $data['listing_outdated'];
224
-        $entity->text = (string) $data['text'];
225
-        $entity->textHtml = (int) $data['text_html'];
226
-        $entity->textHtmledit = (int) $data['text_htmledit'];
227
-        $entity->ownerNotified = (int) $data['owner_notified'];
208
+        $entity->id = (int)$data['id'];
209
+        $entity->uuid = (string)$data['uuid'];
210
+        $entity->node = (int)$data['node'];
211
+        $entity->dateCreated = new DateTime($data['date_created']);
212
+        $entity->entryLastModified = new DateTime($data['entry_last_modified']);
213
+        $entity->lastModified = new DateTime($data['last_modified']);
214
+        $entity->okapiSyncbase = (string)$data['okapi_syncbase'];
215
+        $entity->logLastModified = new DateTime($data['log_last_modified']);
216
+        $entity->cacheId = (int)$data['cache_id'];
217
+        $entity->userId = (int)$data['user_id'];
218
+        $entity->type = (int)$data['type'];
219
+        $entity->ocTeamComment = (int)$data['oc_team_comment'];
220
+        $entity->date = new DateTime($data['date']);
221
+        $entity->orderDate = new DateTime($data['order_date']);
222
+        $entity->needsMaintenance = (int)$data['needs_maintenance'];
223
+        $entity->listingOutdated = (int)$data['listing_outdated'];
224
+        $entity->text = (string)$data['text'];
225
+        $entity->textHtml = (int)$data['text_html'];
226
+        $entity->textHtmledit = (int)$data['text_htmledit'];
227
+        $entity->ownerNotified = (int)$data['owner_notified'];
228 228
         $entity->picture = $data['picture'];
229 229
 
230 230
         return $entity;
Please login to merge, or discard this patch.