Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 356-361 (lines=6) @@
353
            throw new \LogicException($message);
354
        }
355
356
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
357
            return [
358
                'getter' => 'get' . $camelCaseName,
359
                'setter' => $setterName
360
            ];
361
        }
362
363
        if ($propertyType === 'boolean') {
364
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 364-369 (lines=6) @@
361
        }
362
363
        if ($propertyType === 'boolean') {
364
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
365
                return [
366
                    'getter' => 'is' . $camelCaseName,
367
                    'setter' => $setterName
368
                ];
369
            }
370
371
            $message = sprintf(
372
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',