From 666581e4b397285327e0c5b2d6211cdb23a134d7 Mon Sep 17 00:00:00 2001 From: Chris MacDonald <31731869+chrismacdonaldw@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:58:12 -0300 Subject: [PATCH] Adjust for sniffer errors --- src/Plugin/migrate/process/AssembleDate.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Plugin/migrate/process/AssembleDate.php b/src/Plugin/migrate/process/AssembleDate.php index 17126f0d..8b7becb4 100644 --- a/src/Plugin/migrate/process/AssembleDate.php +++ b/src/Plugin/migrate/process/AssembleDate.php @@ -116,11 +116,12 @@ public function transform($value, MigrateExecutableInterface $migrate_executable $return_dates[] = $date_range; } - // Get single dates and add them to return_dates + // Get single dates and add them to return_dates. $single_dates = $this->getValues ? $row->get($this->dates['single_date']) : $this->dates['single_date']; if (is_array($single_dates)) { $return_dates = array_merge($return_dates, $single_dates); - } elseif ($single_dates !== NULL) { + } + elseif ($single_dates !== NULL) { $return_dates[] = $single_dates; }