Completed
Pull Request — master (#61)
by Michal
03:22
created
src/Response/JsonApiResponse.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Component/ApiListingControl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Handlers/ApiListingHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(),
Please login to merge, or discard this patch.