@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | // Transform each header values into a string |
| 79 | 79 | $headers = array_map( |
| 80 | - function (array $values) { |
|
| 80 | + function(array $values) { |
|
| 81 | 81 | return implode(', ', $values); |
| 82 | 82 | }, |
| 83 | 83 | $message->getHeaders() |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | $isValid = true; |
| 105 | 105 | $contentType = $message->getHeaderLine('Content-Type'); |
| 106 | 106 | |
| 107 | - if (! in_array($contentType, $definition->getContentTypes())) { |
|
| 107 | + if (!in_array($contentType, $definition->getContentTypes())) { |
|
| 108 | 108 | $isValid = false; |
| 109 | 109 | |
| 110 | 110 | if ($contentType === '') { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | protected function validate($data, $schema, $location) |
| 172 | 172 | { |
| 173 | 173 | $this->validator->check($data, $schema); |
| 174 | - if (! $this->validator->isValid()) { |
|
| 174 | + if (!$this->validator->isValid()) { |
|
| 175 | 175 | |
| 176 | 176 | $violations = array_map( |
| 177 | 177 | function($error) use ($location) { |
@@ -92,8 +92,8 @@ |
||
| 92 | 92 | $data = unserialize($serialized); |
| 93 | 93 | $this->location = $data['location']; |
| 94 | 94 | $this->name = $data['name']; |
| 95 | - $this->required = $data['required']; |
|
| 96 | - $this->schema = $data['schema']; |
|
| 95 | + $this->required = $data['required']; |
|
| 96 | + $this->schema = $data['schema']; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function getByName($name) |
| 121 | 121 | { |
| 122 | - if (! isset($this->parameters[$name])) { |
|
| 122 | + if (!isset($this->parameters[$name])) { |
|
| 123 | 123 | return null; |
| 124 | 124 | } |
| 125 | 125 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | { |
| 167 | 167 | return array_filter( |
| 168 | 168 | $this->parameters, |
| 169 | - function (Parameter $parameter) use ($location) { |
|
| 169 | + function(Parameter $parameter) use ($location) { |
|
| 170 | 170 | return $parameter->getLocation() === $location; |
| 171 | 171 | } |
| 172 | 172 | ); |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $validLocations = ['path', 'header', 'query', 'body']; |
| 178 | 178 | if (!in_array($parameter->getLocation(), $validLocations)) { |
| 179 | 179 | throw new \InvalidArgumentException( |
| 180 | - $parameter->getLocation(). ' is not a valid parameter location' |
|
| 180 | + $parameter->getLocation().' is not a valid parameter location' |
|
| 181 | 181 | ); |
| 182 | 182 | } |
| 183 | 183 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - throw new \InvalidArgumentException('Unable to resolve the operationId for path ' . $path); |
|
| 61 | + throw new \InvalidArgumentException('Unable to resolve the operationId for path '.$path); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | public function getRequestDefinition($operationId) |