Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
43 | public function __invoke(array $context = []): OpenApi |
||
44 | { |
||
45 | $openApi = $this->decorated->__invoke($context); |
||
46 | $version = sprintf('%s (%s)', $openApi->getInfo()->getVersion(), Versions::getVersion('silverbackis/api-components-bundle')); |
||
47 | |||
48 | $this->removePath($openApi, '/_/abstract_components/{id}'); |
||
49 | $this->removePath($openApi, '/component/forms/{id}'); |
||
50 | |||
51 | return $openApi->withInfo($openApi->getInfo()->withVersion($version)); |
||
52 | } |
||
54 |