Code Duplication    Length = 4-6 lines in 4 locations

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

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

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

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

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

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

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

@@ 316-319 (lines=4) @@
313
            $msg = 'Name cannot be null or empty';
314
            return false;
315
        }
316
        if (null != $this->typeName && !$this->isStringNotNullOrEmpty($this->typeName)) {
317
            $msg = 'Type name cannot be empty';
318
            return false;
319
        }
320
        if (null != $this->storeEntitySet && !$this->isStringNotNullOrEmpty($this->storeEntitySet)) {
321
            $msg = 'Store entity set cannot be empty';
322
            return false;