Code Duplication    Length = 4-6 lines in 4 locations

src/MetadataV3/mapping/cs/TAssociationSetMappingType.php 1 location

@@ 345-348 (lines=4) @@
342
            $msg = 'Name cannot be null or empty';
343
            return false;
344
        }
345
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
346
            $msg = 'Type name cannot be empty';
347
            return false;
348
        }
349
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
350
            $msg = 'Store entity set cannot be empty';
351
            return false;

src/MetadataV3/mapping/cs/TComplexPropertyType.php 1 location

@@ 425-428 (lines=4) @@
422
            $msg = 'Name cannot be null or empty';
423
            return false;
424
        }
425
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
426
            $msg = 'Type name cannot be empty';
427
            return false;
428
        }
429
        if (!$this->isTSimpleIdentifierValid($this->name)) {
430
            $msg = 'Name must be a valid TSimpleIdentifier';
431
            return false;

src/MetadataV3/mapping/cs/TComplexTypeMappingType.php 1 location

@@ 310-315 (lines=6) @@
307
308
    public function isOK(&$msg = null)
309
    {
310
        if (null != $this->typeName) {
311
            if (!$this->isStringNotNullOrEmpty($this->typeName)) {
312
                $msg = 'Type name cannot be empty';
313
                return false;
314
            }
315
        }
316
        $count = count($this->scalarProperty) + count($this->complexProperty) + count($this->condition);
317
        if (1 > $count) {
318
            $msg = "Cannot have all arrays empty";

src/MetadataV3/mapping/cs/TEntitySetMappingType.php 1 location

@@ 367-370 (lines=4) @@
364
            $msg = 'Name cannot be null or empty';
365
            return false;
366
        }
367
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
368
            $msg = 'Type name cannot be empty';
369
            return false;
370
        }
371
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
372
            $msg = 'Store entity set cannot be empty';
373
            return false;