Code Duplication    Length = 4-4 lines in 2 locations

src/MetadataV3/edm/Groups/TEntitySetAttributesTrait.php 1 location

@@ 96-99 (lines=4) @@
93
    
94
    public function isTEntitySetAttributesOK(&$msg = null)
95
    {
96
        if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) {
97
            $msg = "Name must be a valid TSimpleIdentifier";
98
            return false;
99
        }
100
        if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) {
101
            $msg = "Entity type must be a valid TQualifiedName";
102
            return false;

src/MetadataV3/edm/ssdl/TAssociationEndType.php 1 location

@@ 141-144 (lines=4) @@
138
            $msg = "Role cannot be empty";
139
            return false;
140
        }
141
        if (null != $this->role && !$this->isTSimpleIdentifierValid($this->role)) {
142
            $msg = "Role must be a valid TSimpleIdentifier";
143
            return false;
144
        }
145
        if (!$this->isTMultiplicityValid($this->multiplicity)) {
146
            $msg = "Multiplicity must be a valid TMultiplicity";
147
            return false;