Code Duplication    Length = 10-10 lines in 2 locations

MetadataV4/src/edmx/TIncludeAnnotationsType.php 1 location

@@ 112-121 (lines=10) @@
109
        }
110
111
112
        if (null != $this->qualifier) {
113
            if (!is_string($this->qualifier)) {
114
                $msg = "Qualifier must be either a string or null";
115
                return false;
116
            }
117
            if (!$this->isTSimpleIdentifierValid($this->qualifier)) {
118
                $msg = "Qualifier must be a valid TSimpleIdentifier";
119
                return false;
120
            }
121
        }
122
        if (null != $this->targetNamespace) {
123
            if (!is_string($this->targetNamespace)) {
124
                $msg = "TargetNamespace must be either a string or null";

MetadataV4/src/edmx/TIncludeType.php 1 location

@@ 82-91 (lines=10) @@
79
        }
80
81
82
        if (null != $this->alias) {
83
            if (!is_string($this->alias)) {
84
                $msg = "Alias must be either a string or null";
85
                return false;
86
            }
87
            if (!$this->isTSimpleIdentifierValid($this->alias)) {
88
                $msg = "Alias must be a valid TSimpleIdentifier";
89
                return false;
90
            }
91
        }
92
        return true;
93
    }
94
}