Code Duplication    Length = 4-6 lines in 4 locations

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

@@ 338-341 (lines=4) @@
335
            $msg = 'Name cannot be null or empty';
336
            return false;
337
        }
338
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
339
            $msg = 'Type name cannot be empty';
340
            return false;
341
        }
342
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
343
            $msg = 'Store entity set cannot be empty';
344
            return false;

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

@@ 401-404 (lines=4) @@
398
            $msg = 'Name cannot be null or empty';
399
            return false;
400
        }
401
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
402
            $msg = 'Type name cannot be empty';
403
            return false;
404
        }
405
        if (!$this->isTSimpleIdentifierValid($this->name)) {
406
            $msg = 'Name must be a valid TSimpleIdentifier';
407
            return false;

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

@@ 298-303 (lines=6) @@
295
296
    public function isOK(&$msg = null)
297
    {
298
        if (null != $this->typeName) {
299
            if (!$this->isStringNotNullOrEmpty($this->typeName)) {
300
                $msg = 'Type name cannot be empty';
301
                return false;
302
            }
303
        }
304
        $count = count($this->scalarProperty) + count($this->complexProperty) + count($this->condition);
305
        if (1 > $count) {
306
            $msg = "Cannot have all arrays empty";

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

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