Code Duplication    Length = 4-4 lines in 4 locations

src/MetadataV3/edm/Groups/GExpressionTrait.php 2 locations

@@ 754-757 (lines=4) @@
751
            return false;
752
        }
753
754
        if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) {
755
            $msg = "Enum must be a valid TQualifiedName";
756
            return false;
757
        }
758
759
        if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
760
            $msg = "Path must be a valid TQualifiedName";
@@ 759-762 (lines=4) @@
756
            return false;
757
        }
758
759
        if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
760
            $msg = "Path must be a valid TQualifiedName";
761
            return false;
762
        }
763
764
        foreach ($this->gExpressionSimpleFieldNames as $key => $type) {
765
            if (null != $type) {

src/MetadataV3/edm/Groups/GInlineExpressionsTrait.php 2 locations

@@ 395-398 (lines=4) @@
392
            $msg = "Decimal must be decimal";
393
            return false;
394
        }
395
        if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) {
396
            $msg = "Enum must be a valid TQualifiedName";
397
            return false;
398
        }
399
        if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
400
            $msg = "Path must be a valid TQualifiedName";
401
            return false;
@@ 399-402 (lines=4) @@
396
            $msg = "Enum must be a valid TQualifiedName";
397
            return false;
398
        }
399
        if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) {
400
            $msg = "Path must be a valid TQualifiedName";
401
            return false;
402
        }
403
        if (null != $this->dateTime && $this->dateTime !== $this->dateTime($this->dateTime)) {
404
            $msg = "DateTime must be a valid date/time";
405
            return false;