Code Duplication    Length = 4-4 lines in 7 locations

src/MetadataV3/edm/ssdl/TParameterType.php 2 locations

@@ 244-247 (lines=4) @@
241
            $msg = "Type cannot be null or empty";
242
            return false;
243
        }
244
        if (null != $this->mode && !$this->isStringNotNullOrEmpty($this->mode)) {
245
            $msg = "Mode cannot be empty";
246
            return false;
247
        }
248
        if (null != $this->sRID && !$this->isStringNotNullOrEmpty($this->sRID)) {
249
            $msg = "SRID cannot be empty";
250
            return false;
@@ 248-251 (lines=4) @@
245
            $msg = "Mode cannot be empty";
246
            return false;
247
        }
248
        if (null != $this->sRID && !$this->isStringNotNullOrEmpty($this->sRID)) {
249
            $msg = "SRID cannot be empty";
250
            return false;
251
        }
252
        if (null != $this->type && !$this->isTFunctionTypeValid($this->type)) {
253
            $msg = "Type must be a valid TFunctionType";
254
            return false;

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

@@ 137-140 (lines=4) @@
134
            $msg = "Multiplicity cannot be null or empty";
135
            return false;
136
        }
137
        if (null != $this->role && !$this->isStringNotNullOrEmpty($this->role)) {
138
            $msg = "Role cannot be empty";
139
            return false;
140
        }
141
        if (null != $this->role && !$this->isTSimpleIdentifierValid($this->role)) {
142
            $msg = "Role must be a valid TSimpleIdentifier";
143
            return false;

src/MetadataV3/edm/ssdl/TEntityPropertyType.php 2 locations

@@ 353-356 (lines=4) @@
350
            $msg = "Type cannot be null or empty";
351
            return false;
352
        }
353
        if (null != $this->defaultValue && !$this->isStringNotNullOrEmpty($this->defaultValue)) {
354
            $msg = "Default value cannot be empty";
355
            return false;
356
        }
357
        if (null != $this->maxLength && !(is_numeric($this->maxLength) && 0 < $this->maxLength)) {
358
            $msg = "Max length must be positive and numeric";
359
            return false;
@@ 373-376 (lines=4) @@
370
            $msg = "Collation cannot be empty";
371
            return false;
372
        }
373
        if (null != $this->sRID && !$this->isStringNotNullOrEmpty($this->sRID)) {
374
            $msg = "SRID cannot be empty";
375
            return false;
376
        }
377
        if (null != $this->storeGeneratedPattern && !$this->isStringNotNullOrEmpty($this->storeGeneratedPattern)) {
378
            $msg = "Store generated pattern cannot be empty";
379
            return false;

src/MetadataV3/edm/ssdl/TPropertyType.php 2 locations

@@ 325-328 (lines=4) @@
322
            $msg = "Type cannot be null or empty";
323
            return false;
324
        }
325
        if (null != $this->defaultValue && !$this->isStringNotNullOrEmpty($this->defaultValue)) {
326
            $msg = "Default value cannot be empty";
327
            return false;
328
        }
329
        if (null != $this->sRID && !$this->isStringNotNullOrEmpty($this->sRID)) {
330
            $msg = "SRID value cannot be empty";
331
            return false;
@@ 329-332 (lines=4) @@
326
            $msg = "Default value cannot be empty";
327
            return false;
328
        }
329
        if (null != $this->sRID && !$this->isStringNotNullOrEmpty($this->sRID)) {
330
            $msg = "SRID value cannot be empty";
331
            return false;
332
        }
333
        if (null != $this->collation && !$this->isStringNotNullOrEmpty($this->collation)) {
334
            $msg = "Collation value cannot be empty";
335
            return false;