Code Duplication    Length = 4-4 lines in 2 locations

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

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