Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 440-443 (lines=4) @@
437
            $msg = "Unicode must be a valid TUnicodeFacet";
438
            return false;
439
        }
440
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
441
            $msg = "Collation must be a valid TCollationFacet";
442
            return false;
443
        }
444
        if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
445
            $msg = "SRID must be a valid TSridFacet";
446
            return false;

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

@@ 271-274 (lines=4) @@
268
            $msg = "Default value must be a string";
269
            return false;
270
        }
271
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
272
            $msg = "Collation must be a valid TCollationFacet";
273
            return false;
274
        }
275
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
276
            $msg = "Max length must be a valid TMaxLengthFacet";
277
            return false;