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

@@ 670-677 (lines=8) @@
667
                }
668
            }
669
670
            if ($this->subscriptionsScheduledForDeletion !== null) {
671
                if (!$this->subscriptionsScheduledForDeletion->isEmpty()) {
672
                    \Jalle19\StatusManager\Database\SubscriptionQuery::create()
673
                        ->filterByPrimaryKeys($this->subscriptionsScheduledForDeletion->getPrimaryKeys(false))
674
                        ->delete($con);
675
                    $this->subscriptionsScheduledForDeletion = null;
676
                }
677
            }
678
679
            if ($this->collSubscriptions !== null) {
680
                foreach ($this->collSubscriptions as $referrerFK) {