Code Duplication    Length = 6-6 lines in 9 locations

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

@@ 657-662 (lines=6) @@
654
            // method.  This object relates to these object(s) by a
655
            // foreign key reference.
656
657
            if ($this->aInstance !== null) {
658
                if ($this->aInstance->isModified() || $this->aInstance->isNew()) {
659
                    $affectedRows += $this->aInstance->save($con);
660
                }
661
                $this->setInstance($this->aInstance);
662
            }
663
664
            if ($this->isNew() || $this->isModified()) {
665
                // persist changes

src/cli/Database/Base/Connection.php 2 locations

@@ 785-790 (lines=6) @@
782
            // method.  This object relates to these object(s) by a
783
            // foreign key reference.
784
785
            if ($this->aInstance !== null) {
786
                if ($this->aInstance->isModified() || $this->aInstance->isNew()) {
787
                    $affectedRows += $this->aInstance->save($con);
788
                }
789
                $this->setInstance($this->aInstance);
790
            }
791
792
            if ($this->aUser !== null) {
793
                if ($this->aUser->isModified() || $this->aUser->isNew()) {
@@ 792-797 (lines=6) @@
789
                $this->setInstance($this->aInstance);
790
            }
791
792
            if ($this->aUser !== null) {
793
                if ($this->aUser->isModified() || $this->aUser->isNew()) {
794
                    $affectedRows += $this->aUser->save($con);
795
                }
796
                $this->setUser($this->aUser);
797
            }
798
799
            if ($this->isNew() || $this->isModified()) {
800
                // persist changes

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

@@ 674-679 (lines=6) @@
671
            // method.  This object relates to these object(s) by a
672
            // foreign key reference.
673
674
            if ($this->aInstance !== null) {
675
                if ($this->aInstance->isModified() || $this->aInstance->isNew()) {
676
                    $affectedRows += $this->aInstance->save($con);
677
                }
678
                $this->setInstance($this->aInstance);
679
            }
680
681
            if ($this->isNew() || $this->isModified()) {
682
                // persist changes

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

@@ 829-834 (lines=6) @@
826
            // method.  This object relates to these object(s) by a
827
            // foreign key reference.
828
829
            if ($this->aInstance !== null) {
830
                if ($this->aInstance->isModified() || $this->aInstance->isNew()) {
831
                    $affectedRows += $this->aInstance->save($con);
832
                }
833
                $this->setInstance($this->aInstance);
834
            }
835
836
            if ($this->isNew() || $this->isModified()) {
837
                // persist changes

src/cli/Database/Base/Subscription.php 4 locations

@@ 985-990 (lines=6) @@
982
            // method.  This object relates to these object(s) by a
983
            // foreign key reference.
984
985
            if ($this->aInstance !== null) {
986
                if ($this->aInstance->isModified() || $this->aInstance->isNew()) {
987
                    $affectedRows += $this->aInstance->save($con);
988
                }
989
                $this->setInstance($this->aInstance);
990
            }
991
992
            if ($this->aInput !== null) {
993
                if ($this->aInput->isModified() || $this->aInput->isNew()) {
@@ 992-997 (lines=6) @@
989
                $this->setInstance($this->aInstance);
990
            }
991
992
            if ($this->aInput !== null) {
993
                if ($this->aInput->isModified() || $this->aInput->isNew()) {
994
                    $affectedRows += $this->aInput->save($con);
995
                }
996
                $this->setInput($this->aInput);
997
            }
998
999
            if ($this->aUser !== null) {
1000
                if ($this->aUser->isModified() || $this->aUser->isNew()) {
@@ 999-1004 (lines=6) @@
996
                $this->setInput($this->aInput);
997
            }
998
999
            if ($this->aUser !== null) {
1000
                if ($this->aUser->isModified() || $this->aUser->isNew()) {
1001
                    $affectedRows += $this->aUser->save($con);
1002
                }
1003
                $this->setUser($this->aUser);
1004
            }
1005
1006
            if ($this->aChannel !== null) {
1007
                if ($this->aChannel->isModified() || $this->aChannel->isNew()) {
@@ 1006-1011 (lines=6) @@
1003
                $this->setUser($this->aUser);
1004
            }
1005
1006
            if ($this->aChannel !== null) {
1007
                if ($this->aChannel->isModified() || $this->aChannel->isNew()) {
1008
                    $affectedRows += $this->aChannel->save($con);
1009
                }
1010
                $this->setChannel($this->aChannel);
1011
            }
1012
1013
            if ($this->isNew() || $this->isModified()) {
1014
                // persist changes