Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 847-855 (lines=9) @@
844
                $this->resetModified();
845
            }
846
847
            if ($this->subscriptionsScheduledForDeletion !== null) {
848
                if (!$this->subscriptionsScheduledForDeletion->isEmpty()) {
849
                    foreach ($this->subscriptionsScheduledForDeletion as $subscription) {
850
                        // need to save related object because we set the relation to null
851
                        $subscription->save($con);
852
                    }
853
                    $this->subscriptionsScheduledForDeletion = null;
854
                }
855
            }
856
857
            if ($this->collSubscriptions !== null) {
858
                foreach ($this->collSubscriptions as $referrerFK) {

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

@@ 710-718 (lines=9) @@
707
                }
708
            }
709
710
            if ($this->subscriptionsScheduledForDeletion !== null) {
711
                if (!$this->subscriptionsScheduledForDeletion->isEmpty()) {
712
                    foreach ($this->subscriptionsScheduledForDeletion as $subscription) {
713
                        // need to save related object because we set the relation to null
714
                        $subscription->save($con);
715
                    }
716
                    $this->subscriptionsScheduledForDeletion = null;
717
                }
718
            }
719
720
            if ($this->collSubscriptions !== null) {
721
                foreach ($this->collSubscriptions as $referrerFK) {