Completed
Push — next ( c582f9...4beac3 )
by Thomas
01:09 queued 26s
created
htdocs_symfony/src/Repository/CacheSizeRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -224,12 +224,12 @@  discard block
 block discarded – undo
224 224
     public function getEntityFromDatabaseArray(array $data)
225 225
     : GeoCacheSizeEntity {
226 226
         $entity = new GeoCacheSizeEntity();
227
-        $entity->id = (int) $data['id'];
228
-        $entity->name = (string) $data['name'];
229
-        $entity->transId = (int) $data['trans_id'];
230
-        $entity->ordinal = (int) $data['ordinal'];
231
-        $entity->de = (string) $data['de'];
232
-        $entity->en = (string) $data['en'];
227
+        $entity->id = (int)$data['id'];
228
+        $entity->name = (string)$data['name'];
229
+        $entity->transId = (int)$data['trans_id'];
230
+        $entity->ordinal = (int)$data['ordinal'];
231
+        $entity->de = (string)$data['de'];
232
+        $entity->en = (string)$data['en'];
233 233
 
234 234
         return $entity;
235 235
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SecurityRoleHierarchyRepository.php 1 patch
Spacing   +3 added lines, -3 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->roleId = (int) $this->connection->lastInsertId();
148
+        $entity->roleId = (int)$this->connection->lastInsertId();
149 149
 
150 150
         return $entity;
151 151
     }
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
     public function getEntityFromDatabaseArray(array $data)
219 219
     : SecurityRoleHierarchyEntity {
220 220
         $entity = new SecurityRoleHierarchyEntity();
221
-        $entity->roleId = (int) $data['role_id'];
222
-        $entity->subRoleId = (int) $data['sub_role_id'];
221
+        $entity->roleId = (int)$data['role_id'];
222
+        $entity->subRoleId = (int)$data['sub_role_id'];
223 223
 
224 224
         return $entity;
225 225
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheTypeRepository.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             $databaseArray
147 147
         );
148 148
 
149
-        $entity->id = (int) $this->connection->lastInsertId();
149
+        $entity->id = (int)$this->connection->lastInsertId();
150 150
 
151 151
         return $entity;
152 152
     }
@@ -229,17 +229,17 @@  discard block
 block discarded – undo
229 229
     public function getEntityFromDatabaseArray(array $data)
230 230
     : GeoCacheTypeEntity {
231 231
         $entity = new GeoCacheTypeEntity();
232
-        $entity->id = (int) $data['id'];
233
-        $entity->name = (string) $data['name'];
234
-        $entity->transId = (int) $data['trans_id'];
235
-        $entity->ordinal = (int) $data['ordinal'];
236
-        $entity->short = (string) $data['short'];
237
-        $entity->de = (string) $data['de'];
238
-        $entity->en = (string) $data['en'];
239
-        $entity->iconLarge = (string) $data['icon_large'];
240
-        $entity->short2 = (string) $data['short2'];
241
-        $entity->short2TransId = (int) $data['short2_trans_id'];
242
-        $entity->kmlName = (string) $data['kml_name'];
232
+        $entity->id = (int)$data['id'];
233
+        $entity->name = (string)$data['name'];
234
+        $entity->transId = (int)$data['trans_id'];
235
+        $entity->ordinal = (int)$data['ordinal'];
236
+        $entity->short = (string)$data['short'];
237
+        $entity->de = (string)$data['de'];
238
+        $entity->en = (string)$data['en'];
239
+        $entity->iconLarge = (string)$data['icon_large'];
240
+        $entity->short2 = (string)$data['short2'];
241
+        $entity->short2TransId = (int)$data['short2_trans_id'];
242
+        $entity->kmlName = (string)$data['kml_name'];
243 243
 
244 244
         return $entity;
245 245
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CoordinatesRepository.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                 0,
212 212
             ];
213 213
         }
214
-        $lw = (float) $this->nLon;
215
-        $bw = (float) $this->nLat;
214
+        $lw = (float)$this->nLon;
215
+        $bw = (float)$this->nLat;
216 216
 
217 217
         //WGS84 Datum
218 218
         //Große Halbachse a und Abplattung f
@@ -231,9 +231,9 @@  discard block
 block discarded – undo
231 231
 
232 232
         //Koeffizienten zur Berechnung der Meridianbogenlänge
233 233
         $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384);
234
-        $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
234
+        $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
235 235
         $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384);
236
-        $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288);
236
+        $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288);
237 237
 
238 238
         //Längenzone lz und Breitenzone (Band) bz
239 239
         $lzn = intval(($lw + 180) / 6) + 1;
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         if ($lzn < 10) {
260 260
             $lz = '0' . $lzn;
261 261
         }
262
-        $bd = (int) (1 + ($bw + 80) / 8);
262
+        $bd = (int)(1 + ($bw + 80) / 8);
263 263
         $bz = substr($b_sel, $bd - 1, 1);
264 264
 
265 265
         //Geographische Breite in Radianten br
@@ -304,20 +304,20 @@  discard block
 block discarded – undo
304 304
         $ew = 0.9996 * ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
305 305
                         $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120) + 500000;
306 306
 
307
-        $nk = $nw - (int) $nw;
307
+        $nk = $nw - (int)$nw;
308 308
         if ($nk < 0.5) {
309
-            $nw = '' . (int) $nw;
309
+            $nw = '' . (int)$nw;
310 310
         } else {
311
-            $nw = '' . ((int) $nw + 1);
311
+            $nw = '' . ((int)$nw + 1);
312 312
         }
313 313
 
314 314
         while (strlen($nw) < 7) {
315 315
             $nw = '0' . $nw;
316 316
         }
317 317
 
318
-        $nk = $ew - (int) $ew;
318
+        $nk = $ew - (int)$ew;
319 319
         if ($nk < 0.5) {
320
-            $ew = '0' . (int) $ew;
320
+            $ew = '0' . (int)$ew;
321 321
         } else {
322 322
             $ew = '0' . intval($ew + 1);
323 323
         }
@@ -325,8 +325,8 @@  discard block
 block discarded – undo
325 325
         return [
326 326
             'zone' => $lz,
327 327
             'letter' => $bz,
328
-            'north' => 'N' . floor((float) $nw),
329
-            'east' => 'E' . floor((float) $ew),
328
+            'north' => 'N' . floor((float)$nw),
329
+            'east' => 'E' . floor((float)$ew),
330 330
         ];
331 331
     }
332 332
 
@@ -378,8 +378,8 @@  discard block
 block discarded – undo
378 378
                 0,
379 379
             ];
380 380
         }
381
-        $lw = (float) $lw;
382
-        $bw = (float) $bw;
381
+        $lw = (float)$lw;
382
+        $bw = (float)$bw;
383 383
 
384 384
         // Quellsystem WGS 84 Datum
385 385
         // Große Halbachse a und Abplattung fq
@@ -463,8 +463,8 @@  discard block
 block discarded – undo
463 463
                 0,
464 464
             ];
465 465
         }
466
-        $lp = (float) $lp;
467
-        $bp = (float) $bp;
466
+        $lp = (float)$lp;
467
+        $bp = (float)$bp;
468 468
 
469 469
         // Potsdam Datum
470 470
         // Große Halbachse a und Abplattung f
@@ -482,9 +482,9 @@  discard block
 block discarded – undo
482 482
 
483 483
         // Koeffizienten zur Berechnung der Meridianbogenlänge
484 484
         $e0 = $c * (pi() / 180) * (1 - 3 * $ex2 / 4 + 45 * $ex4 / 64 - 175 * $ex6 / 256 + 11025 * $ex8 / 16384);
485
-        $e2 = $c * (- 3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
485
+        $e2 = $c * (-3 * $ex2 / 8 + 15 * $ex4 / 32 - 525 * $ex6 / 1024 + 2205 * $ex8 / 4096);
486 486
         $e4 = $c * (15 * $ex4 / 256 - 105 * $ex6 / 1024 + 2205 * $ex8 / 16384);
487
-        $e6 = $c * (- 35 * $ex6 / 3072 + 315 * $ex8 / 12288);
487
+        $e6 = $c * (-35 * $ex6 / 3072 + 315 * $ex8 / 12288);
488 488
 
489 489
         // Breite in Radianten
490 490
         $br = $bp * pi() / 180;
@@ -522,18 +522,18 @@  discard block
 block discarded – undo
522 522
         $rw = ($nd * $cos1 * $dl + $nd * $cos3 * (1 - $tan2 + $etasq) * $dl3 / 6 +
523 523
                $nd * $cos5 * (5 - 18 * $tan2 + $tan4) * $dl5 / 120 + $kz * 1e6 + 500000);
524 524
 
525
-        $nk = $hw - (int) $hw;
525
+        $nk = $hw - (int)$hw;
526 526
         if ($nk < 0.5) {
527
-            $hw = (int) $hw;
527
+            $hw = (int)$hw;
528 528
         } else {
529
-            $hw = ((int) $hw) + 1;
529
+            $hw = ((int)$hw) + 1;
530 530
         }
531 531
 
532
-        $nk = $rw - (int) $rw;
532
+        $nk = $rw - (int)$rw;
533 533
         if ($nk < 0.5) {
534
-            $rw = (int) $rw;
534
+            $rw = (int)$rw;
535 535
         } else {
536
-            $rw = (int) ($rw + 1);
536
+            $rw = (int)($rw + 1);
537 537
         }
538 538
 
539 539
         return [
@@ -559,8 +559,8 @@  discard block
 block discarded – undo
559 559
         $lat_base = 52.15517440;
560 560
         $lon_base = 5.38720621;
561 561
 
562
-        for ($i = 0; $i <= 6; $i ++) {
563
-            for ($j = 0; $j <= 5; $j ++) {
562
+        for ($i = 0; $i <= 6; $i++) {
563
+            for ($j = 0; $j <= 5; $j++) {
564 564
                 $rpq[$i][$j] = 0;
565 565
                 $spq[$i][$j] = 0;
566 566
             }
@@ -595,8 +595,8 @@  discard block
 block discarded – undo
595 595
         $xOrigin = 0;
596 596
         $yOrigin = 0;
597 597
 
598
-        for ($q = 0; $q <= 5; $q ++) {
599
-            for ($p = 0; $p <= 6; $p ++) {
598
+        for ($q = 0; $q <= 5; $q++) {
599
+            for ($p = 0; $p <= 6; $p++) {
600 600
                 $xOrigin = $xOrigin + ($rpq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q))));
601 601
                 $yOrigin = $yOrigin + ($spq[$p][$q] * ((pow($dlat, $p)) * (pow($dlon, $q))));
602 602
             }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/SupportListingInfosRepository.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             $databaseArray
159 159
         );
160 160
 
161
-        $entity->id = (int) $this->connection->lastInsertId();
161
+        $entity->id = (int)$this->connection->lastInsertId();
162 162
 
163 163
         return $entity;
164 164
     }
@@ -249,22 +249,22 @@  discard block
 block discarded – undo
249 249
     public function getEntityFromDatabaseArray(array $data)
250 250
     : SupportListingInfosEntity {
251 251
         $entity = new SupportListingInfosEntity();
252
-        $entity->id = ((int) $data['id']) ?? null;
253
-        $entity->wpOc = (string) $data['wp_oc'];
254
-        $entity->nodeId = (int) $data['node_id'];
255
-        $entity->nodeOwnerId = (string) $data['node_owner_id'];
256
-        $entity->nodeListingId = (string) $data['node_listing_id'];
257
-        $entity->nodeListingWp = (string) $data['node_listing_wp'];
258
-        $entity->nodeListingName = (string) $data['node_listing_name'];
259
-        $entity->nodeListingSize = (int) $data['node_listing_size'];
260
-        $entity->nodeListingDifficulty = (int) $data['node_listing_difficulty'];
261
-        $entity->nodeListingTerrain = (int) $data['node_listing_terrain'];
262
-        $entity->nodeListingCoordinatesLon = (double) $data['node_listing_coordinates_lon'];
263
-        $entity->nodeListingCoordinatesLat = (double) $data['node_listing_coordinates_lat'];
264
-        $entity->nodeListingAvailable = (bool) $data['node_listing_available'];
265
-        $entity->nodeListingArchived = (bool) $data['node_listing_archived'];
252
+        $entity->id = ((int)$data['id']) ?? null;
253
+        $entity->wpOc = (string)$data['wp_oc'];
254
+        $entity->nodeId = (int)$data['node_id'];
255
+        $entity->nodeOwnerId = (string)$data['node_owner_id'];
256
+        $entity->nodeListingId = (string)$data['node_listing_id'];
257
+        $entity->nodeListingWp = (string)$data['node_listing_wp'];
258
+        $entity->nodeListingName = (string)$data['node_listing_name'];
259
+        $entity->nodeListingSize = (int)$data['node_listing_size'];
260
+        $entity->nodeListingDifficulty = (int)$data['node_listing_difficulty'];
261
+        $entity->nodeListingTerrain = (int)$data['node_listing_terrain'];
262
+        $entity->nodeListingCoordinatesLon = (double)$data['node_listing_coordinates_lon'];
263
+        $entity->nodeListingCoordinatesLat = (double)$data['node_listing_coordinates_lat'];
264
+        $entity->nodeListingAvailable = (bool)$data['node_listing_available'];
265
+        $entity->nodeListingArchived = (bool)$data['node_listing_archived'];
266 266
         $entity->lastModified = date('Y-m-d H:i:s');
267
-        $entity->importStatus = (int) $data['importstatus'];
267
+        $entity->importStatus = (int)$data['importstatus'];
268 268
         $entity->node = $this->nodesRepository->fetchOneBy(['id' => $entity->nodeId]);
269 269
 
270 270
         return $entity;
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheReportStatusRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             $databaseArray
154 154
         );
155 155
 
156
-        $entity->id = (int) $this->connection->lastInsertId();
156
+        $entity->id = (int)$this->connection->lastInsertId();
157 157
 
158 158
         return $entity;
159 159
     }
@@ -228,9 +228,9 @@  discard block
 block discarded – undo
228 228
     public function getEntityFromDatabaseArray(array $data)
229 229
     : GeoCacheReportStatusEntity {
230 230
         $entity = new GeoCacheReportStatusEntity();
231
-        $entity->id = (int) $data['id'];
232
-        $entity->name = (string) $data['name'];
233
-        $entity->transId = (int) $data['trans_id'];
231
+        $entity->id = (int)$data['id'];
232
+        $entity->name = (string)$data['name'];
233
+        $entity->transId = (int)$data['trans_id'];
234 234
 
235 235
         return $entity;
236 236
     }
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CachesRepository.php 1 patch
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
             $databaseArray
189 189
         );
190 190
 
191
-        $entity->cacheId = (int) $this->connection->lastInsertId();
191
+        $entity->cacheId = (int)$this->connection->lastInsertId();
192 192
 
193 193
         return $entity;
194 194
     }
@@ -329,42 +329,42 @@  discard block
 block discarded – undo
329 329
     : GeoCachesEntity {
330 330
         $entity = new GeoCachesEntity();
331 331
 
332
-        $entity->cacheId = (int) $data['cache_id'];
333
-        $entity->uuid = (string) $data['uuid'];
334
-        $entity->node = (int) $data['node'];
332
+        $entity->cacheId = (int)$data['cache_id'];
333
+        $entity->uuid = (string)$data['uuid'];
334
+        $entity->node = (int)$data['node'];
335 335
         $entity->dateCreated = new DateTime($data['date_created']);
336
-        $entity->isPublishdate = (int) $data['is_publishdate'];
336
+        $entity->isPublishdate = (int)$data['is_publishdate'];
337 337
         $entity->lastModified = date('Y-m-d H:i:s');
338
-        $entity->okapiSyncbase = (string) $data['okapi_syncbase'];
338
+        $entity->okapiSyncbase = (string)$data['okapi_syncbase'];
339 339
         $entity->listingLastModified = new DateTime($data['listing_last_modified']);
340 340
         $entity->metaLastModified = new DateTime($data['meta_last_modified']);
341
-        $entity->userId = (int) $data['user_id'];
342
-        $entity->name = (string) $data['name'];
341
+        $entity->userId = (int)$data['user_id'];
342
+        $entity->name = (string)$data['name'];
343 343
         $entity->longitude = $data['longitude'];
344 344
         $entity->latitude = $data['latitude'];
345
-        $entity->type = (int) $data['type'];
346
-        $entity->status = (int) $data['status'];
347
-        $entity->country = (string) $data['country'];
345
+        $entity->type = (int)$data['type'];
346
+        $entity->status = (int)$data['status'];
347
+        $entity->country = (string)$data['country'];
348 348
         $entity->dateHidden = new DateTime($data['date_hidden']);
349
-        $entity->size = (int) $data['size'];
350
-        $entity->difficulty = (int) $data['difficulty'];
351
-        $entity->terrain = (int) $data['terrain'];
349
+        $entity->size = (int)$data['size'];
350
+        $entity->difficulty = (int)$data['difficulty'];
351
+        $entity->terrain = (int)$data['terrain'];
352 352
         //        $entity->logpw = (string) $data['logpw'];
353 353
         $entity->logpw = ($data['logpw'] == '') ? '' : '1';
354 354
         $entity->searchTime = $data['search_time'];
355 355
         $entity->wayLength = $data['way_length'];
356
-        $entity->wpGc = (string) $data['wp_gc'];
357
-        $entity->wpGcMaintained = (string) $data['wp_gc_maintained'];
358
-        $entity->wpNc = (string) $data['wp_nc'];
359
-        $entity->wpOc = (string) $data['wp_oc'];
360
-        $entity->descLanguages = (string) $data['desc_languages'];
361
-        $entity->defaultDesclang = (string) $data['default_desclang'];
356
+        $entity->wpGc = (string)$data['wp_gc'];
357
+        $entity->wpGcMaintained = (string)$data['wp_gc_maintained'];
358
+        $entity->wpNc = (string)$data['wp_nc'];
359
+        $entity->wpOc = (string)$data['wp_oc'];
360
+        $entity->descLanguages = (string)$data['desc_languages'];
361
+        $entity->defaultDesclang = (string)$data['default_desclang'];
362 362
         $entity->dateActivate = new DateTime($data['date_activate'] ?? '');
363
-        $entity->needNpaRecalc = (int) $data['need_npa_recalc'];
364
-        $entity->showCachelists = (int) $data['show_cachelists'];
365
-        $entity->protectOldCoords = (int) $data['protect_old_coords'];
366
-        $entity->needsMaintenance = (int) $data['needs_maintenance'];
367
-        $entity->listingOutdated = (int) $data['listing_outdated'];
363
+        $entity->needNpaRecalc = (int)$data['need_npa_recalc'];
364
+        $entity->showCachelists = (int)$data['show_cachelists'];
365
+        $entity->protectOldCoords = (int)$data['protect_old_coords'];
366
+        $entity->needsMaintenance = (int)$data['needs_maintenance'];
367
+        $entity->listingOutdated = (int)$data['listing_outdated'];
368 368
         $entity->flagsLastModified = new DateTime($data['flags_last_modified']);
369 369
         $entity->cacheSize = $this->cacheSizeRepository->fetchOneBy(['id' => $entity->size]);
370 370
         $entity->cacheStatus = $this->cacheStatusRepository->fetchOneBy(['id' => $entity->status]);
Please login to merge, or discard this patch.
htdocs_symfony/src/Repository/CacheReportReasonsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
             $databaseArray
154 154
         );
155 155
 
156
-        $entity->id = (int) $this->connection->lastInsertId();
156
+        $entity->id = (int)$this->connection->lastInsertId();
157 157
 
158 158
         return $entity;
159 159
     }
@@ -229,10 +229,10 @@  discard block
 block discarded – undo
229 229
     public function getEntityFromDatabaseArray(array $data)
230 230
     : GeoCacheReportReasonsEntity {
231 231
         $entity = new GeoCacheReportReasonsEntity();
232
-        $entity->id = (int) $data['id'];
233
-        $entity->name = (string) $data['name'];
234
-        $entity->transId = (int) $data['trans_id'];
235
-        $entity->order = (int) $data['order'];
232
+        $entity->id = (int)$data['id'];
233
+        $entity->name = (string)$data['name'];
234
+        $entity->transId = (int)$data['trans_id'];
235
+        $entity->order = (int)$data['order'];
236 236
 
237 237
         return $entity;
238 238
     }
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
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             $databaseArray
160 160
         );
161 161
 
162
-        $entity->id = (int) $this->connection->lastInsertId();
162
+        $entity->id = (int)$this->connection->lastInsertId();
163 163
 
164 164
         return $entity;
165 165
     }
@@ -241,11 +241,11 @@  discard block
 block discarded – undo
241 241
     public function getEntityFromDatabaseArray(array $data)
242 242
     : GeoCacheAdoptionsEntity {
243 243
         $entity = new GeoCacheAdoptionsEntity();
244
-        $entity->id = (int) $data['id'];
245
-        $entity->cacheId = (int) $data['cache_id'];
244
+        $entity->id = (int)$data['id'];
245
+        $entity->cacheId = (int)$data['cache_id'];
246 246
         $entity->date = new DateTime($data['date']);
247
-        $entity->fromUserId = (int) $data['from_user_id'];
248
-        $entity->toUserId = (int) $data['to_user_id'];
247
+        $entity->fromUserId = (int)$data['from_user_id'];
248
+        $entity->toUserId = (int)$data['to_user_id'];
249 249
         $entity->fromUser = $this->userRepository->fetchOneById($entity->fromUserId);
250 250
         $entity->toUser = $this->userRepository->fetchOneById($entity->toUserId);
251 251
 
Please login to merge, or discard this patch.