Completed
Pull Request — development (#829)
by
unknown
04:57
created
htdocs_symfony/src/Repository/CacheLogsArchivedRepository.php 1 patch
Spacing   +17 added lines, -17 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
     }
@@ -208,30 +208,30 @@  discard block
 block discarded – undo
208 208
     public function getEntityFromDatabaseArray(array $data)
209 209
     {
210 210
         $entity = new GeoCacheLogsArchivedEntity();
211
-        $entity->id = (int) $data['id'];
212
-        $entity->uuid = (string) $data['uuid'];
213
-        $entity->node = (int) $data['node'];
211
+        $entity->id = (int)$data['id'];
212
+        $entity->uuid = (string)$data['uuid'];
213
+        $entity->node = (int)$data['node'];
214 214
         $entity->dateCreated = new DateTime($data['date_created']);
215 215
         $entity->entryLastModified = new DateTime($data['entry_last_modified']);
216 216
         $entity->lastModified = new DateTime($data['last_modified']);
217
-        $entity->okapiSyncbase = (string) $data['okapi_syncbase'];
217
+        $entity->okapiSyncbase = (string)$data['okapi_syncbase'];
218 218
         $entity->logLastModified = new DateTime($data['log_last_modified']);
219
-        $entity->cacheId = (int) $data['cache_id'];
220
-        $entity->userId = (int) $data['user_id'];
221
-        $entity->type = (int) $data['type'];
222
-        $entity->ocTeamComment = (int) $data['oc_team_comment'];
219
+        $entity->cacheId = (int)$data['cache_id'];
220
+        $entity->userId = (int)$data['user_id'];
221
+        $entity->type = (int)$data['type'];
222
+        $entity->ocTeamComment = (int)$data['oc_team_comment'];
223 223
         $entity->date = new DateTime($data['date']);
224 224
         $entity->orderDate = new DateTime($data['order_date']);
225
-        $entity->needsMaintenance = (int) $data['needs_maintenance'];
226
-        $entity->listingOutdated = (int) $data['listing_outdated'];
227
-        $entity->text = (string) $data['text'];
228
-        $entity->textHtml = (int) $data['text_html'];
229
-        $entity->textHtmledit = (int) $data['text_htmledit'];
230
-        $entity->ownerNotified = (int) $data['owner_notified'];
225
+        $entity->needsMaintenance = (int)$data['needs_maintenance'];
226
+        $entity->listingOutdated = (int)$data['listing_outdated'];
227
+        $entity->text = (string)$data['text'];
228
+        $entity->textHtml = (int)$data['text_html'];
229
+        $entity->textHtmledit = (int)$data['text_htmledit'];
230
+        $entity->ownerNotified = (int)$data['owner_notified'];
231 231
         $entity->picture = $data['picture'];
232 232
         $entity->deletionDate = new DateTime($data['deletion_date']);
233
-        $entity->deletedBy = (int) $data['deleted_by'];
234
-        $entity->restoredBy = (int) $data['restored_by'];
233
+        $entity->deletedBy = (int)$data['deleted_by'];
234
+        $entity->restoredBy = (int)$data['restored_by'];
235 235
 
236 236
         return $entity;
237 237
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheAdoptionsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $databaseArray
149 149
         );
150 150
 
151
-        $entity->id = (int) $this->connection->lastInsertId();
151
+        $entity->id = (int)$this->connection->lastInsertId();
152 152
 
153 153
         return $entity;
154 154
     }
@@ -228,11 +228,11 @@  discard block
 block discarded – undo
228 228
     public function getEntityFromDatabaseArray(array $data)
229 229
     {
230 230
         $entity = new GeoCacheAdoptionsEntity();
231
-        $entity->id = (int) $data['id'];
232
-        $entity->cacheId = (int) $data['cache_id'];
231
+        $entity->id = (int)$data['id'];
232
+        $entity->cacheId = (int)$data['cache_id'];
233 233
         $entity->date = new DateTime($data['date']);
234
-        $entity->fromUserId = (int) $data['from_user_id'];
235
-        $entity->toUserId = (int) $data['to_user_id'];
234
+        $entity->fromUserId = (int)$data['from_user_id'];
235
+        $entity->toUserId = (int)$data['to_user_id'];
236 236
         $entity->fromUser = $this->userRepository->fetchOneById($entity->fromUserId);
237 237
         $entity->toUser = $this->userRepository->fetchOneById($entity->toUserId);
238 238
 
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheCoordinatesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             $databaseArray
146 146
         );
147 147
 
148
-        $entity->id = (int) $this->connection->lastInsertId();
148
+        $entity->id = (int)$this->connection->lastInsertId();
149 149
 
150 150
         return $entity;
151 151
     }
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
     public function getEntityFromDatabaseArray(array $data)
225 225
     {
226 226
         $entity = new GeoCacheCoordinatesEntity();
227
-        $entity->id = (int) $data['id'];
227
+        $entity->id = (int)$data['id'];
228 228
         $entity->dateCreated = new DateTime($data['date_created']);
229
-        $entity->cacheId = (int) $data['cache_id'];
229
+        $entity->cacheId = (int)$data['cache_id'];
230 230
         $entity->longitude = $data['longitude'];
231 231
         $entity->latitude = $data['latitude'];
232
-        $entity->restoredBy = (int) $data['restored_by'];
232
+        $entity->restoredBy = (int)$data['restored_by'];
233 233
         if ($entity->restoredBy != 0) $entity->user = $this->userRepository->fetchOneById($entity->restoredBy);
234 234
 
235 235
         return $entity;
Please login to merge, or discard this patch.
htdocs_symfony/src/Controller/Backend/SupportController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             $fetchedInformation = $this->executeSQL_flexible($inputData['content_WHAT'], $inputData['content_TABLE']);
168 168
 
169 169
             $countFetched = count($fetchedInformation);
170
-            for ($i = 0; $i < $countFetched; $i ++) {
170
+            for ($i = 0; $i < $countFetched; $i++) {
171 171
                 if (array_key_exists('password', $fetchedInformation[$i])) {
172 172
                     $fetchedInformation[$i]['password'] = '-';
173 173
                 }
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
         if ($form->isSubmitted() && $form->isValid()) {
236 236
             $inputData = $form->getData();
237 237
 
238
-            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int) $inputData['hidden_repID']]);
238
+            $entity = $this->cacheReportsRepository->fetchOneBy(['id' => (int)$inputData['hidden_repID']]);
239 239
             $entity->comment = $inputData['support_admin_comment'];
240 240
 
241 241
             $this->cacheReportsRepository->update($entity);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheStatusModifiedRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
             $databaseArray
161 161
         );
162 162
 
163
-        $entity->cacheId = (int) $this->connection->lastInsertId();
163
+        $entity->cacheId = (int)$this->connection->lastInsertId();
164 164
 
165 165
         return $entity;
166 166
     }
@@ -238,11 +238,11 @@  discard block
 block discarded – undo
238 238
     public function getEntityFromDatabaseArray(array $data)
239 239
     {
240 240
         $entity = new GeoCacheStatusModifiedEntity();
241
-        $entity->cacheId = (int) $data['cache_id'];
241
+        $entity->cacheId = (int)$data['cache_id'];
242 242
         $entity->dateModified = new DateTime($data['date_modified']);
243
-        $entity->oldState = (int) $data['old_state'];
244
-        $entity->newState = (int) $data['new_state'];
245
-        $entity->userId = (int) $data['user_id'];
243
+        $entity->oldState = (int)$data['old_state'];
244
+        $entity->newState = (int)$data['new_state'];
245
+        $entity->userId = (int)$data['user_id'];
246 246
         $entity->user = $this->userRepository->fetchOneById($entity->userId);
247 247
         $entity->cacheStatusOld = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->oldState]);
248 248
         $entity->cacheStatusNew = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->newState]);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheReportsRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             $databaseArray
183 183
         );
184 184
 
185
-        $entity->id = (int) $this->connection->lastInsertId();
185
+        $entity->id = (int)$this->connection->lastInsertId();
186 186
 
187 187
         return $entity;
188 188
     }
@@ -266,16 +266,16 @@  discard block
 block discarded – undo
266 266
     {
267 267
 
268 268
         $entity = new GeoCacheReportsEntity();
269
-        $entity->id = (int) $data['id'];
269
+        $entity->id = (int)$data['id'];
270 270
         $entity->dateCreated = new DateTime($data['date_created']);
271
-        $entity->cacheid = (int) $data['cacheid'];
272
-        $entity->userid = (int) $data['userid'];
273
-        $entity->reason = (int) $data['reason'];
274
-        $entity->note = (string) $data['note'];
275
-        $entity->status = (int) $data['status'];
276
-        $entity->adminid = (int) $data['adminid'];
277
-        $entity->lastmodified = (string) $data['lastmodified'];
278
-        $entity->comment = (string) $data['comment'];
271
+        $entity->cacheid = (int)$data['cacheid'];
272
+        $entity->userid = (int)$data['userid'];
273
+        $entity->reason = (int)$data['reason'];
274
+        $entity->note = (string)$data['note'];
275
+        $entity->status = (int)$data['status'];
276
+        $entity->adminid = (int)$data['adminid'];
277
+        $entity->lastmodified = (string)$data['lastmodified'];
278
+        $entity->comment = (string)$data['comment'];
279 279
         $entity->cache = $this->cachesRepository->fetchOneBy(['cache_id' => $entity->cacheid]);
280 280
         $entity->user = $this->userRepository->fetchOneById($entity->userid);
281 281
         if ($entity->adminid) $entity->admin = $this->userRepository->fetchOneById($entity->adminid);
Please login to merge, or discard this patch.