Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 312-317 (lines=6) @@
309
            throw new \LogicException($message);
310
        }
311
312
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
313
            return [
314
                'getter' => 'get' . $camelCaseName,
315
                'setter' => $setterName
316
            ];
317
        }
318
319
        if ($propertyType === 'boolean') {
320
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 320-325 (lines=6) @@
317
        }
318
319
        if ($propertyType === 'boolean') {
320
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
321
                return [
322
                    'getter' => 'is' . $camelCaseName,
323
                    'setter' => $setterName
324
                ];
325
            }
326
327
            $message = sprintf(
328
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',