Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 475-478 (lines=4) @@
472
            $msg = "Default value must be a string";
473
            return false;
474
        }
475
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
476
            $msg = "Max length must be a valid TMaxLengthFacet";
477
            return false;
478
        }
479
        if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
480
            $msg = "Max length must be a valid TFixedLengthFacet";
481
            return false;

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

@@ 315-318 (lines=4) @@
312
            $msg = "Collation must be a valid TCollationFacet";
313
            return false;
314
        }
315
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
316
            $msg = "Max length must be a valid TMaxLengthFacet";
317
            return false;
318
        }
319
        if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
320
            $msg = "Fixed length must be a valid TFixedLengthFacet";
321
            return false;

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

@@ 256-259 (lines=4) @@
253
            $msg = "Mode must be a valid TParameterMode";
254
            return false;
255
        }
256
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
257
            $msg = "Max length must be a valid TMaxLengthFacet";
258
            return false;
259
        }
260
        if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) {
261
            $msg = "Precision must be a valid TPrecisionFacet";
262
            return false;