| Total Complexity | 5 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Coverage | 38.1% |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | class IndexController extends BaseController |
||
| 27 | { |
||
| 28 | 2 | public function indexAction() |
|
| 29 | { |
||
| 30 | 2 | $this->enableLayout(); |
|
| 31 | 2 | $this->enableView(); |
|
| 32 | 2 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Check basic connectivity. Returns a timestamp. |
||
| 36 | * @SWG\Get( |
||
| 37 | * path="/ping", |
||
| 38 | * tags={"status"}, |
||
| 39 | * @SWG\Response(response="200", description="Sends a response with the time") |
||
| 40 | * ) |
||
| 41 | * |
||
| 42 | */ |
||
| 43 | 2 | public function pingAction() |
|
| 47 | 2 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return Response |
||
| 51 | */ |
||
| 52 | public function apiAction() |
||
| 53 | { |
||
| 54 | $swagger = Swagger\scan(APPLICATION_PATH.'/src')->__toString(); |
||
|
|
|||
| 55 | $response = new Response(); |
||
| 56 | $response = $response->withHeader('Content-Type', 'application/json'); |
||
| 57 | $response->getBody()->write($swagger); |
||
| 58 | return $response; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function fakeClientCallbackAction() |
||
| 65 | } |
||
| 66 | |||
| 67 | public function emailAction() |
||
| 73 | } |
||
| 74 | } |
||
| 75 |