Code Duplication    Length = 6-6 lines in 2 locations

Mapping/DocumentParser.php 2 locations

@@ 250-255 (lines=6) @@
247
            throw new \LogicException($message);
248
        }
249
250
        if ($reflectionClass->hasMethod('get'.$camelCaseName)) {
251
            return [
252
                'getter' => 'get' . $camelCaseName,
253
                'setter' => $setterName
254
            ];
255
        }
256
257
        if ($propertyType === 'boolean') {
258
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
@@ 258-263 (lines=6) @@
255
        }
256
257
        if ($propertyType === 'boolean') {
258
            if ($reflectionClass->hasMethod('is' . $camelCaseName)) {
259
                return [
260
                    'getter' => 'is' . $camelCaseName,
261
                    'setter' => $setterName
262
                ];
263
            }
264
265
            $message = sprintf(
266
                'Missing %s() or %s() method in %s class. Add it, or change property to public.',