Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 637-639 (lines=3) @@
634
        if ($this->aInstance !== null && $this->instance_name !== $this->aInstance->getName()) {
635
            $this->aInstance = null;
636
        }
637
        if ($this->aUser !== null && $this->user_id !== $this->aUser->getId()) {
638
            $this->aUser = null;
639
        }
640
    } // ensureConsistency
641
642
    /**

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

@@ 778-780 (lines=3) @@
775
        if ($this->aInstance !== null && $this->instance_name !== $this->aInstance->getName()) {
776
            $this->aInstance = null;
777
        }
778
        if ($this->aUser !== null && $this->user_id !== $this->aUser->getId()) {
779
            $this->aUser = null;
780
        }
781
        if ($this->aChannel !== null && $this->channel_id !== $this->aChannel->getId()) {
782
            $this->aChannel = null;
783
        }