| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 34 | public function render(string $format = RenderOpenApi::JSON, array $options = []): string |
||
| 35 | { |
||
| 36 | $options = array_merge([ |
||
| 37 | 'base_path' => __DIR__ |
||
| 38 | ], $options); |
||
| 39 | |||
| 40 | $spec = Generator::scan([$options['base_path']]); |
||
| 41 | |||
| 42 | return $this->renderers[$format]->render($spec, $options); |
||
| 43 | } |
||
| 45 |