Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 325-328 (lines=4) @@
322
            $msg = "Default value must be a string: " . get_class($this);
323
            return false;
324
        }
325
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
326
            $msg = "Collation must be a valid TCollationFacet: " . get_class($this);
327
            return false;
328
        }
329
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
330
            $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this);
331
            return false;

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

@@ 516-519 (lines=4) @@
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;
519
        }
520
        if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
521
            $msg = "SRID must be a valid TSridFacet: " . get_class($this);
522
            return false;