Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

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