Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 342-347 (lines=6) @@
339
            throw new \LogicException($message);
340
        }
341
342
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
343
            return [
344
                'getter' => 'get' . $camelCaseName,
345
                'setter' => $setterName
346
            ];
347
        }
348
349
        if ($propertyType === 'boolean') {
350
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 350-355 (lines=6) @@
347
        }
348
349
        if ($propertyType === 'boolean') {
350
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
351
                return [
352
                    'getter' => 'is' . $camelCaseName,
353
                    'setter' => $setterName
354
                ];
355
            }
356
357
            $message = sprintf(
358
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',