Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 349-352 (lines=4) @@
346
            $msg = "SRID must be a valid TSridFacet: " . get_class($this);
347
            return false;
348
        }
349
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
350
            $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this);
351
            return false;
352
        }
353
354
        return true;
355
    }

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

@@ 512-515 (lines=4) @@
509
            $msg = "Scale must be a valid TScaleFacet: " . get_class($this);
510
            return false;
511
        }
512
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
513
            $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this);
514
            return false;
515
        }
516
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
517
            $msg = "Collation must be a valid TCollationFacet: " . get_class($this);
518
            return false;