Code Duplication    Length = 4-4 lines in 2 locations

src/Mpociot/ApiDoc/Generators/AbstractGenerator.php 2 locations

@@ 473-476 (lines=4) @@
470
                $attributeData['type'] = 'numeric';
471
                $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();
472
                break;
473
            case 'file':
474
                $attributeData['type'] = 'file';
475
                $attributeData['description'][] = Description::parse($rule)->getDescription();
476
                break;
477
            case 'image':
478
                $attributeData['type'] = 'image';
479
                $attributeData['description'][] = Description::parse($rule)->getDescription();
@@ 477-480 (lines=4) @@
474
                $attributeData['type'] = 'file';
475
                $attributeData['description'][] = Description::parse($rule)->getDescription();
476
                break;
477
            case 'image':
478
                $attributeData['type'] = 'image';
479
                $attributeData['description'][] = Description::parse($rule)->getDescription();
480
                break;
481
            case 'json':
482
                $attributeData['type'] = 'string';
483
                $attributeData['description'][] = Description::parse($rule)->getDescription();