@@ -32,7 +32,6 @@ |
||
32 | 32 | * to setup response code, content type, charset and expiration |
33 | 33 | * |
34 | 34 | * @param integer $code |
35 | - * @param mixed $data |
|
36 | 35 | * @param string $contentType |
37 | 36 | * @param string $charset |
38 | 37 | * @param bool|DateTimeInterface|int|string $expiration |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $apis = $this->apiDecider->getApis(); |
33 | 33 | $this->getTemplate()->add('apis', $this->groupApis($apis)); |
34 | - $this->getTemplate()->setFile(__DIR__ . '/api_listing.latte'); |
|
34 | + $this->getTemplate()->setFile(__DIR__.'/api_listing.latte'); |
|
35 | 35 | $this->getTemplate()->render(); |
36 | 36 | } |
37 | 37 |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | */ |
53 | 53 | private function getApiList($version) |
54 | 54 | { |
55 | - $versionApis = array_filter($this->apiDecider->getApis(), function (Api $api) use ($version) { |
|
55 | + $versionApis = array_filter($this->apiDecider->getApis(), function(Api $api) use ($version) { |
|
56 | 56 | return $version == $api->getEndpoint()->getVersion(); |
57 | 57 | }); |
58 | 58 | |
59 | - return array_map(function (Api $api) { |
|
59 | + return array_map(function(Api $api) { |
|
60 | 60 | return [ |
61 | 61 | 'method' => $api->getEndpoint()->getMethod(), |
62 | 62 | 'version' => $api->getEndpoint()->getVersion(), |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | private function createParamsList(ApiHandlerInterface $handler) |
80 | 80 | { |
81 | - return array_map(function (InputParam $param) { |
|
81 | + return array_map(function(InputParam $param) { |
|
82 | 82 | $parameter = [ |
83 | 83 | 'type' => $param->getType(), |
84 | 84 | 'key' => $param->getKey(), |