Completed
Pull Request — master (#56)
by Michal
12:52
created
src/Params/JsonInputParam.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 
10 10
 class JsonInputParam extends InputParam
11 11
 {
12
-    const TYPE_POST_JSON  = 'POST_JSON';
12
+    const TYPE_POST_JSON = 'POST_JSON';
13 13
 
14 14
     private $schemaValidator;
15 15
 
Please login to merge, or discard this patch.
src/Handlers/SwaggerHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $handlers = $this->getHandlers($version);
71 71
         $scheme = $this->request->getUrl()->getScheme();
72 72
         $host = $this->request->getUrl()->getHost();
73
-        $baseUrl = $scheme . '://' . $host;
73
+        $baseUrl = $scheme.'://'.$host;
74 74
         $basePath = $this->getBasePath($handlers, $baseUrl);
75 75
 
76 76
         $responses = [
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function getHandlers($version)
150 150
     {
151
-        $versionHandlers = array_filter($this->apiDecider->getHandlers(), function ($handler) use ($version) {
151
+        $versionHandlers = array_filter($this->apiDecider->getHandlers(), function($handler) use ($version) {
152 152
             return $version == $handler['endpoint']->getVersion();
153 153
         });
154 154
         return $versionHandlers;
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      */
286 286
     private function createParamsList(ApiHandlerInterface $handler)
287 287
     {
288
-        return array_map(function (InputParam $param) {
288
+        return array_map(function(InputParam $param) {
289 289
             $parameter = [
290 290
                 'name' => $param->getKey(),
291 291
                 'in' => $this->createIn($param->getType()),
Please login to merge, or discard this patch.
src/Handlers/OpenApiHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $handlers = $this->getHandlers($version);
87 87
         $scheme = $this->request->getUrl()->getScheme();
88 88
         $host = $this->request->getUrl()->getHost();
89
-        $baseUrl = $scheme . '://' . $host;
89
+        $baseUrl = $scheme.'://'.$host;
90 90
         $basePath = $this->getBasePath($handlers, $baseUrl);
91 91
 
92 92
         $responses = [
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             ],
136 136
             'servers' => [
137 137
                 [
138
-                    'url' => $scheme . '://' . $host . $basePath,
138
+                    'url' => $scheme.'://'.$host.$basePath,
139 139
                 ],
140 140
             ],
141 141
             'components' => [
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     private function getHandlers($version)
214 214
     {
215
-        $versionHandlers = array_filter($this->apiDecider->getHandlers(), function ($handler) use ($version) {
215
+        $versionHandlers = array_filter($this->apiDecider->getHandlers(), function($handler) use ($version) {
216 216
             return $version == $handler['endpoint']->getVersion();
217 217
         });
218 218
         return $versionHandlers;
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
     private function addDefinition($name, $definition)
430 430
     {
431 431
         if (isset($this->definitions[$name])) {
432
-            throw new InvalidArgumentException('Definition with name ' . $name . ' already exists. Rename it or use existing one.');
432
+            throw new InvalidArgumentException('Definition with name '.$name.' already exists. Rename it or use existing one.');
433 433
         }
434 434
         $this->definitions[$name] = $definition;
435 435
     }
Please login to merge, or discard this patch.