Code Duplication    Length = 8-8 lines in 2 locations

src/cli/Database/Base/Channel.php 1 location

@@ 675-682 (lines=8) @@
672
                $this->resetModified();
673
            }
674
675
            if ($this->subscriptionsScheduledForDeletion !== null) {
676
                if (!$this->subscriptionsScheduledForDeletion->isEmpty()) {
677
                    \Jalle19\StatusManager\Database\SubscriptionQuery::create()
678
                        ->filterByPrimaryKeys($this->subscriptionsScheduledForDeletion->getPrimaryKeys(false))
679
                        ->delete($con);
680
                    $this->subscriptionsScheduledForDeletion = null;
681
                }
682
            }
683
684
            if ($this->collSubscriptions !== null) {
685
                foreach ($this->collSubscriptions as $referrerFK) {

src/cli/Database/Base/Instance.php 1 location

@@ 704-711 (lines=8) @@
701
                }
702
            }
703
704
            if ($this->subscriptionsScheduledForDeletion !== null) {
705
                if (!$this->subscriptionsScheduledForDeletion->isEmpty()) {
706
                    \Jalle19\StatusManager\Database\SubscriptionQuery::create()
707
                        ->filterByPrimaryKeys($this->subscriptionsScheduledForDeletion->getPrimaryKeys(false))
708
                        ->delete($con);
709
                    $this->subscriptionsScheduledForDeletion = null;
710
                }
711
            }
712
713
            if ($this->collSubscriptions !== null) {
714
                foreach ($this->collSubscriptions as $referrerFK) {