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

@@ 517-520 (lines=4) @@
514
            $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this);
515
            return false;
516
        }
517
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
518
            $msg = "Collation must be a valid TCollationFacet: " . get_class($this);
519
            return false;
520
        }
521
        if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
522
            $msg = "SRID must be a valid TSridFacet: " . get_class($this);
523
            return false;