Code Duplication    Length = 4-4 lines in 2 locations

src/MetadataV3/edm/ssdl/TEntityPropertyType.php 1 location

@@ 365-368 (lines=4) @@
362
            $msg = "Precision must be positive and numeric";
363
            return false;
364
        }
365
        if (null != $this->scale && !(is_numeric($this->scale) && 0 < $this->scale)) {
366
            $msg = "Scale must be positive and numeric";
367
            return false;
368
        }
369
        if (null != $this->collation && !$this->isStringNotNullOrEmpty($this->collation)) {
370
            $msg = "Collation cannot be empty";
371
            return false;

src/MetadataV3/edm/ssdl/TPropertyType.php 1 location

@@ 345-348 (lines=4) @@
342
            $msg = "Precision must be numeric and non-negative";
343
            return false;
344
        }
345
        if (null != $this->scale && !(is_numeric($this->scale) && 0 <= $this->scale)) {
346
            $msg = "Scale must be numeric and non-negative";
347
            return false;
348
        }
349
        if (!$this->isTSimpleIdentifierValid($this->name)) {
350
            $msg = "Name must be valid TSimpleIdentifier";
351
            return false;