Code Duplication    Length = 4-4 lines in 3 locations

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

@@ 336-339 (lines=4) @@
333
            $msg = "Guid must be valid GUID: " . get_class($this);
334
            return false;
335
        }
336
        if (null != $this->bool && $this->bool !== boolval($this->bool)) {
337
            $msg = "Bool must be boolean: " . get_class($this);
338
            return false;
339
        }
340
        if (null != $this->decimal && $this->decimal !== floatval($this->decimal)) {
341
            $msg = "Decimal must be decimal: " . get_class($this);
342
            return false;

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

@@ 317-320 (lines=4) @@
314
315
    public function isTFacetAttributesTraitValid(&$msg = null)
316
    {
317
        if ($this->nullable !== boolval($this->nullable)) {
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;

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

@@ 489-492 (lines=4) @@
486
            $msg = "Type must be a valid TPropertyType: " . get_class($this);
487
            return false;
488
        }
489
        if (null != $this->nullable && $this->nullable !== boolval($this->nullable)) {
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;