Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 431-434 (lines=4) @@
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;
434
        }
435
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
436
            $msg = "Collation must be a valid TCollationFacet";
437
            return false;

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

@@ 290-293 (lines=4) @@
287
            $msg = "SRID must be a valid TSridFacet";
288
            return false;
289
        }
290
        if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) {
291
            $msg = "Unicode must be a valid TUnicodeFacet";
292
            return false;
293
        }
294
295
        return true;
296
    }