@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $this->eventMock |
| 64 | 64 | ->expects($this->once()) |
| 65 | 65 | ->method('setResponse') |
| 66 | - ->with($this->callback(function (Response $response) { |
|
| 66 | + ->with($this->callback(function(Response $response) { |
|
| 67 | 67 | return $response->getStatusCode() === Response::HTTP_METHOD_NOT_ALLOWED; |
| 68 | 68 | })); |
| 69 | 69 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $this->eventMock |
| 83 | 83 | ->expects($this->once()) |
| 84 | 84 | ->method('setResponse') |
| 85 | - ->with($this->callback(function (Response $response) { |
|
| 85 | + ->with($this->callback(function(Response $response) { |
|
| 86 | 86 | return $response->getStatusCode() === Response::HTTP_NOT_MODIFIED; |
| 87 | 87 | })); |
| 88 | 88 | |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $this->eventMock |
| 133 | 133 | ->expects($this->once()) |
| 134 | 134 | ->method('setResponse') |
| 135 | - ->with($this->callback(function (Response $response) { |
|
| 135 | + ->with($this->callback(function(Response $response) { |
|
| 136 | 136 | return $response->getStatusCode() === Response::HTTP_PRECONDITION_REQUIRED; |
| 137 | 137 | })); |
| 138 | 138 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $this->eventMock |
| 153 | 153 | ->expects($this->once()) |
| 154 | 154 | ->method('setResponse') |
| 155 | - ->with($this->callback(function (Response $response) { |
|
| 155 | + ->with($this->callback(function(Response $response) { |
|
| 156 | 156 | return $response->getStatusCode() === Response::HTTP_PRECONDITION_FAILED; |
| 157 | 157 | })); |
| 158 | 158 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param Request $request |
| 90 | 90 | * @param string $version |
| 91 | 91 | * |
| 92 | - * @return mixed |
|
| 92 | + * @return string |
|
| 93 | 93 | */ |
| 94 | 94 | public function update(Request $request, $version) |
| 95 | 95 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | * @param Request $request |
| 123 | 123 | * @param string $version |
| 124 | 124 | * |
| 125 | - * @return mixed |
|
| 125 | + * @return string |
|
| 126 | 126 | */ |
| 127 | 127 | public function register(Request $request, $version) |
| 128 | 128 | { |
@@ -181,11 +181,11 @@ |
||
| 181 | 181 | $segments[] = '?' . $query; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - array_walk($segments, function (&$value) { |
|
| 184 | + array_walk($segments, function(&$value) { |
|
| 185 | 185 | $value = preg_replace('/[^[:print:]]/', '_', $value); |
| 186 | 186 | }); |
| 187 | 187 | |
| 188 | - return array_filter($segments, function ($value) { |
|
| 188 | + return array_filter($segments, function($value) { |
|
| 189 | 189 | return $value !== ''; |
| 190 | 190 | }); |
| 191 | 191 | } |