Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 239-244 (lines=6) @@
236
            throw new \LogicException($message);
237
        }
238
239
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
240
            return [
241
                'getter' => 'get' . $camelCaseName,
242
                'setter' => $setterName
243
            ];
244
        }
245
246
        if ($propertyType === 'boolean') {
247
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 247-252 (lines=6) @@
244
        }
245
246
        if ($propertyType === 'boolean') {
247
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
248
                return [
249
                    'getter' => 'is' . $camelCaseName,
250
                    'setter' => $setterName
251
                ];
252
            }
253
254
            $message = sprintf(
255
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',