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

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