Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 316-319 (lines=4) @@
313
314
    public function isGInlineExpressionsValid(&$msg = null)
315
    {
316
        if (null != $this->string && !is_string($this->string)) {
317
            $msg = "String must be a string: " . get_class($this);
318
            return false;
319
        }
320
        if (null != $this->binary && !$this->hexBinary($this->binary)) {
321
            $msg = "Binary must be hexadecimal: " . get_class($this);
322
            return false;

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

@@ 321-324 (lines=4) @@
318
            $msg = "Nullable must be boolean: " . get_class($this);
319
            return false;
320
        }
321
        if (null != $this->defaultValue && !is_string($this->defaultValue)) {
322
            $msg = "Default value must be a string: " . get_class($this);
323
            return false;
324
        }
325
        if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) {
326
            $msg = "Collation must be a valid TCollationFacet: " . get_class($this);
327
            return false;

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

@@ 493-496 (lines=4) @@
490
            $msg = "Nullable must be boolean: " . get_class($this);
491
            return false;
492
        }
493
        if (null != $this->defaultValue && !is_string($this->defaultValue)) {
494
            $msg = "Default value must be a string: " . get_class($this);
495
            return false;
496
        }
497
        if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) {
498
            $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this);
499
            return false;