Code Duplication    Length = 4-4 lines in 2 locations

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

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

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

@@ 266-269 (lines=4) @@
263
            $msg = "Nullable must be boolean";
264
            return false;
265
        }
266
        if (null != $this->defaultValue && !is_string($this->defaultValue)) {
267
            $msg = "Default value must be a string";
268
            return false;
269
        }
270
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
271
            $msg = "Max length must be a valid TMaxLengthFacet";
272
            return false;