| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 2 | public function getConfig(): array |
|
| 26 | { |
||
| 27 | return [ |
||
| 28 | [ |
||
| 29 | 2 | 'path' => '/config', |
|
| 30 | 'middleware' => [ |
||
| 31 | 2 | '\SlayerBirden\DataFlowServer\Authentication\Middleware\TokenMiddleware::class', |
|
| 32 | \Zend\Expressive\Helper\BodyParams\BodyParamsMiddleware::class, |
||
| 33 | 2 | '\SlayerBirden\DataFlowServer\Domain\Middleware\SetOwnerMiddleware::class', |
|
| 34 | 2 | $this->getControllerFullName(), |
|
| 35 | ], |
||
| 36 | 2 | 'name' => 'add_config', |
|
| 37 | 'allowed_methods' => ['POST'], |
||
| 38 | ], |
||
| 56 |