Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

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