Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

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