Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 427-430 (lines=4) @@
424
            $msg = "Precision must be a valid TPrecisionFacet";
425
            return false;
426
        }
427
        if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) {
428
            $msg = "Scale must be a valid TScaleFacet";
429
            return false;
430
        }
431
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
432
            $msg = "Unicode must be a valid TUnicodeFacet";
433
            return false;

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

@@ 282-285 (lines=4) @@
279
            $msg = "Precision must be a valid TPrecisionFacet";
280
            return false;
281
        }
282
        if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) {
283
            $msg = "Scale must be a valid TScaleFacet";
284
            return false;
285
        }
286
        if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) {
287
            $msg = "SRID must be a valid TSridFacet";
288
            return false;