Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 280-285 (lines=6) @@
277
            throw new \LogicException($message);
278
        }
279
280
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
281
            return [
282
                'getter' => 'get' . $camelCaseName,
283
                'setter' => $setterName
284
            ];
285
        }
286
287
        if ($propertyType === 'boolean') {
288
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 288-293 (lines=6) @@
285
        }
286
287
        if ($propertyType === 'boolean') {
288
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
289
                return [
290
                    'getter' => 'is' . $camelCaseName,
291
                    'setter' => $setterName
292
                ];
293
            }
294
295
            $message = sprintf(
296
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',