Code Duplication    Length = 7-7 lines in 2 locations

src/Description/Builder/OpenApiBuilder.php 1 location

@@ 217-223 (lines=7) @@
214
     *
215
     * @return Response
216
     */
217
    protected function createResponse(int $code, \stdClass $definition)
218
    {
219
        return new Response(
220
            $code,
221
            $this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null)
222
        );
223
    }
224
225
    /**
226
     * @param \stdClass $definition

src/Description/Builder/RamlBuilder.php 1 location

@@ 149-155 (lines=7) @@
146
        return new Parameter($name, $required, $schema, $in);
147
    }
148
149
    protected function createResponse(int $code, \stdClass $definition)
150
    {
151
        return new Response(
152
            $code,
153
            $this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null)
154
        );
155
    }
156
157
    /**
158
     * @param \stdClass $definition