Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 416-419 (lines=4) @@
413
            $msg = "Nullable must be boolean";
414
            return false;
415
        }
416
        if (null != $this->defaultValue && !is_string($this->defaultValue)) {
417
            $msg = "Default value must be a string";
418
            return false;
419
        }
420
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
421
            $msg = "Max length must be a valid TMaxLengthFacet";
422
            return false;

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

@@ 267-270 (lines=4) @@
264
            $msg = "Nullable must be boolean";
265
            return false;
266
        }
267
        if (null != $this->defaultValue && !is_string($this->defaultValue)) {
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;