Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 506-509 (lines=4) @@
503
                $attributeData['type'] = 'numeric';
504
                $attributeData['description'][] = Description::parse($rule)->with($parameters)->getDescription();
505
                break;
506
            case 'file':
507
                $attributeData['type'] = 'file';
508
                $attributeData['description'][] = Description::parse($rule)->getDescription();
509
                break;
510
            case 'image':
511
                $attributeData['type'] = 'image';
512
                $attributeData['description'][] = Description::parse($rule)->getDescription();
@@ 510-513 (lines=4) @@
507
                $attributeData['type'] = 'file';
508
                $attributeData['description'][] = Description::parse($rule)->getDescription();
509
                break;
510
            case 'image':
511
                $attributeData['type'] = 'image';
512
                $attributeData['description'][] = Description::parse($rule)->getDescription();
513
                break;
514
            case 'json':
515
                $attributeData['type'] = 'string';
516
                $attributeData['description'][] = Description::parse($rule)->getDescription();