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

@@ 832-834 (lines=3) @@
829
        if ($this->aInput !== null && $this->input_uuid !== $this->aInput->getUuid()) {
830
            $this->aInput = null;
831
        }
832
        if ($this->aUser !== null && $this->user_id !== $this->aUser->getId()) {
833
            $this->aUser = null;
834
        }
835
        if ($this->aChannel !== null && $this->channel_id !== $this->aChannel->getId()) {
836
            $this->aChannel = null;
837
        }