Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 436-439 (lines=4) @@
433
            $msg = "Scale must be a valid TScaleFacet";
434
            return false;
435
        }
436
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
437
            $msg = "Unicode must be a valid TUnicodeFacet";
438
            return false;
439
        }
440
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
441
            $msg = "Collation must be a valid TCollationFacet";
442
            return false;

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

@@ 295-298 (lines=4) @@
292
            $msg = "SRID must be a valid TSridFacet";
293
            return false;
294
        }
295
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
296
            $msg = "Unicode must be a valid TUnicodeFacet";
297
            return false;
298
        }
299
300
        return true;
301
    }