Code Duplication    Length = 4-6 lines in 4 locations

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

@@ 283-286 (lines=4) @@
280
            $msg = 'Name cannot be null or empty';
281
            return false;
282
        }
283
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
284
            $msg = 'Type name cannot be empty';
285
            return false;
286
        }
287
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
288
            $msg = 'Store entity set cannot be empty';
289
            return false;

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

@@ 348-351 (lines=4) @@
345
            $msg = 'Name cannot be null or empty';
346
            return false;
347
        }
348
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
349
            $msg = 'Type name cannot be empty';
350
            return false;
351
        }
352
        if (!$this->isTSimpleIdentifierValid($this->name)) {
353
            $msg = 'Name must be a valid TSimpleIdentifier';
354
            return false;

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

@@ 255-260 (lines=6) @@
252
253
    public function isOK(&$msg = null)
254
    {
255
        if (null != $this->typeName) {
256
            if (!$this->isStringNotNullOrEmpty($this->typeName)) {
257
                $msg = 'Type name cannot be empty';
258
                return false;
259
            }
260
        }
261
        $count = count($this->scalarProperty) + count($this->complexProperty) + count($this->condition);
262
        if (1 > $count) {
263
            $msg = "Cannot have all arrays empty";

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

@@ 395-398 (lines=4) @@
392
            $msg = 'Name cannot be null or empty';
393
            return false;
394
        }
395
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
396
            $msg = 'Type name cannot be empty';
397
            return false;
398
        }
399
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
400
            $msg = 'Store entity set cannot be empty';
401
            return false;