Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 329-332 (lines=4) @@
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;
332
        }
333
        if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
334
            $msg = "Fixed length must be a valid TFixedLengthFacet: " . get_class($this);
335
            return false;

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

@@ 275-278 (lines=4) @@
272
            $msg = "Mode must be a valid TParameterMode: " . get_class($this);
273
            return false;
274
        }
275
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
276
            $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this);
277
            return false;
278
        }
279
        if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) {
280
            $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this);
281
            return false;

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

@@ 497-500 (lines=4) @@
494
            $msg = "Default value must be a string: " . get_class($this);
495
            return false;
496
        }
497
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
498
            $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this);
499
            return false;
500
        }
501
        if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) {
502
            $msg = "Max length must be a valid TFixedLengthFacet: " . get_class($this);
503
            return false;