Code Duplication    Length = 6-6 lines in 2 locations

src/Dev/DocumentFixer/Fixers/SwaggerBundleResponseFixer.php 2 locations

@@ 55-60 (lines=6) @@
52
        }
53
        foreach ($definition->paths as &$operations) {
54
            foreach ($operations as &$operation) {
55
                if (!isset($operation['responses']['500'])) {
56
                    $operation['responses']['500'] = [
57
                        'description' => 'Generic server error',
58
                        'schema'      => ['$ref' => '#/responses/ServerError']
59
                    ];
60
                }
61
                if (!isset($operation['responses']['400'])) {
62
                    $operation['responses']['400'] = [
63
                        'description' => 'Client input error',
@@ 61-66 (lines=6) @@
58
                        'schema'      => ['$ref' => '#/responses/ServerError']
59
                    ];
60
                }
61
                if (!isset($operation['responses']['400'])) {
62
                    $operation['responses']['400'] = [
63
                        'description' => 'Client input error',
64
                        'schema'      => ['$ref' => '#/responses/InputError']
65
                    ];
66
                }
67
            }
68
        }
69
    }