|
@@ -38,7 +38,7 @@ discard block |
|
|
block discarded – undo |
|
38
|
38
|
$pid = $event->getPid(); |
|
39
|
39
|
|
|
40
|
40
|
$importId = \strlen($calEvent->getUid()) <= 100 ? $calEvent->getUid() : md5($calEvent->getUid()); |
|
41
|
|
- $eventObj = $this->initializeEventRecord($importId,$pid); |
|
|
41
|
+ $eventObj = $this->initializeEventRecord($importId, $pid); |
|
42
|
42
|
$this->hydrateEventRecord($eventObj, $calEvent, $pid); |
|
43
|
43
|
|
|
44
|
44
|
if (null !== $eventObj->getUid() && (int)$eventObj->getUid() > 0) { |
|
@@ -58,9 +58,9 @@ discard block |
|
|
block discarded – undo |
|
58
|
58
|
* |
|
59
|
59
|
* @return Event |
|
60
|
60
|
*/ |
|
61
|
|
- private function initializeEventRecord(string $importId,$pid): Event |
|
|
61
|
+ private function initializeEventRecord(string $importId, $pid): Event |
|
62
|
62
|
{ |
|
63
|
|
- $eventObj = $this->eventRepository->findOneByImportId($importId,$pid); |
|
|
63
|
+ $eventObj = $this->eventRepository->findOneByImportId($importId, $pid); |
|
64
|
64
|
|
|
65
|
65
|
if (!($eventObj instanceof Event)) { |
|
66
|
66
|
$eventObj = new Event(); |
Please login to merge, or discard this patch.