Code Duplication    Length = 4-4 lines in 5 locations

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

@@ 267-270 (lines=4) @@
264
    
265
    public function isTFunctionImportAttributesValid(&$msg)
266
    {
267
        if (!$this->isTSimpleIdentifierValid($this->name)) {
268
            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
269
            return false;
270
        }
271
        if ($this->isComposable && $this->isSideEffecting) {
272
            $msg = "Cannot both be composable and side-effecting";
273
            return false;

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

@@ 52-55 (lines=4) @@
49
            $msg = "Name cannot be null: " . get_class($this);
50
            return false;
51
        }
52
        if (!$this->isTSimpleIdentifierValid($this->name)) {
53
            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
54
            return false;
55
        }
56
        
57
        return true;
58
    }

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

@@ 116-119 (lines=4) @@
113
    
114
    public function isTEntitySetAttributesOK(&$msg = null)
115
    {
116
        if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) {
117
            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
118
            return false;
119
        }
120
        if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) {
121
            $msg = "Entity type must be a valid TQualifiedName: " . get_class($this);
122
            return false;

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

@@ 263-266 (lines=4) @@
260
261
    public function isTFunctionImportParameterAttributesValid(&$msg = null)
262
    {
263
        if (!$this->isTSimpleIdentifierValid($this->name)) {
264
            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
265
            return false;
266
        }
267
        if (!$this->isTFunctionImportParameterAndReturnTypeValid($this->type)) {
268
            $msg = "Type must be a valid TFunctionImportParameterAndReturnType: " . get_class($this);
269
            return false;

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

@@ 480-483 (lines=4) @@
477
478
    public function isTCommonPropertyAttributesValid(&$msg = null)
479
    {
480
        if (!$this->isTSimpleIdentifierValid($this->name)) {
481
            $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this);
482
            return false;
483
        }
484
        if (!$this->isTPropertyTypeValid($this->type)) {
485
            $msg = "Type must be a valid TPropertyType: " . get_class($this);
486
            return false;