@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $event |
| 94 | 94 | ->expects($this->once()) |
| 95 | 95 | ->method('setView') |
| 96 | - ->with($this->callback(function (View $view) { |
|
| 96 | + ->with($this->callback(function(View $view) { |
|
| 97 | 97 | return $view->getStatusCode() === null && $view->getData() === null; |
| 98 | 98 | })); |
| 99 | 99 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $event |
| 122 | 122 | ->expects($this->once()) |
| 123 | 123 | ->method('setView') |
| 124 | - ->with($this->callback(function (View $view) use ($form) { |
|
| 124 | + ->with($this->callback(function(View $view) use ($form) { |
|
| 125 | 125 | return $view->getStatusCode() === Response::HTTP_BAD_REQUEST && $view->getData() === $form; |
| 126 | 126 | })); |
| 127 | 127 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | $event |
| 155 | 155 | ->expects($this->once()) |
| 156 | 156 | ->method('setView') |
| 157 | - ->with($this->callback(function (View $view) use ($statusCode) { |
|
| 157 | + ->with($this->callback(function(View $view) use ($statusCode) { |
|
| 158 | 158 | return $view->getStatusCode() === $statusCode && $view->getData() === null; |
| 159 | 159 | })); |
| 160 | 160 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $event |
| 210 | 210 | ->expects($this->once()) |
| 211 | 211 | ->method('setView') |
| 212 | - ->with($this->callback(function (View $view) use ($statusCode, $data, $url) { |
|
| 212 | + ->with($this->callback(function(View $view) use ($statusCode, $data, $url) { |
|
| 213 | 213 | $headers = $view->getHeaders(); |
| 214 | 214 | |
| 215 | 215 | return $view->getStatusCode() === $statusCode |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $event |
| 253 | 253 | ->expects($this->once()) |
| 254 | 254 | ->method('setView') |
| 255 | - ->with($this->callback(function (View $view) use ($statusCode, $data) { |
|
| 255 | + ->with($this->callback(function(View $view) use ($statusCode, $data) { |
|
| 256 | 256 | return $view->getStatusCode() === $statusCode && $view->getData() === $data; |
| 257 | 257 | })); |
| 258 | 258 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $event |
| 91 | 91 | ->expects($this->once()) |
| 92 | 92 | ->method('setView') |
| 93 | - ->with($this->callback(function (View $view) use ($form) { |
|
| 93 | + ->with($this->callback(function(View $view) use ($form) { |
|
| 94 | 94 | return $view->getData() === $form && $view->getStatusCode() === null; |
| 95 | 95 | })); |
| 96 | 96 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $event |
| 140 | 140 | ->expects($this->once()) |
| 141 | 141 | ->method('setView') |
| 142 | - ->with($this->callback(function (View $view) use ($route, $routeParameters) { |
|
| 142 | + ->with($this->callback(function(View $view) use ($route, $routeParameters) { |
|
| 143 | 143 | return $view->getStatusCode() === Response::HTTP_FOUND |
| 144 | 144 | && $view->getRoute() === $route |
| 145 | 145 | && $view->getRouteParameters() === $routeParameters; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $event |
| 170 | 170 | ->expects($this->once()) |
| 171 | 171 | ->method('setView') |
| 172 | - ->with($this->callback(function (View $view) use ($route) { |
|
| 172 | + ->with($this->callback(function(View $view) use ($route) { |
|
| 173 | 173 | return $view->getRoute() === $route && $view->getRouteParameters() === []; |
| 174 | 174 | })); |
| 175 | 175 | |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | ->method('createRepresentation') |
| 201 | 201 | ->with( |
| 202 | 202 | $this->identicalTo($pagerfanta), |
| 203 | - $this->callback(function ($config) use ($route, $routeParameters, $queryParameters) { |
|
| 203 | + $this->callback(function($config) use ($route, $routeParameters, $queryParameters) { |
|
| 204 | 204 | return $config instanceof Route |
| 205 | 205 | && $config->getName() === $route |
| 206 | 206 | && $config->getParameters() === array_merge($routeParameters, $queryParameters); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | ->method('addMethodCall') |
| 64 | 64 | ->with( |
| 65 | 65 | $this->identicalTo('offsetSet'), |
| 66 | - $this->callback(function (array $args) use ($manager, $resource) { |
|
| 66 | + $this->callback(function(array $args) use ($manager, $resource) { |
|
| 67 | 67 | return isset($args[0]) |
| 68 | 68 | && isset($args[1]) |
| 69 | 69 | && $args[0] === $resource |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | ->method('addMethodCall') |
| 64 | 64 | ->with( |
| 65 | 65 | $this->identicalTo('offsetSet'), |
| 66 | - $this->callback(function (array $args) use ($domainManager, $resource) { |
|
| 66 | + $this->callback(function(array $args) use ($domainManager, $resource) { |
|
| 67 | 67 | return isset($args[0]) |
| 68 | 68 | && isset($args[1]) |
| 69 | 69 | && $args[0] === $resource |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | ->method('addMethodCall') |
| 73 | 73 | ->with( |
| 74 | 74 | $this->identicalTo('offsetSet'), |
| 75 | - $this->callback(function (array $args) use ($name, $resource) { |
|
| 75 | + $this->callback(function(array $args) use ($name, $resource) { |
|
| 76 | 76 | return isset($args[0]) |
| 77 | 77 | && isset($args[1]) |
| 78 | 78 | && $args[0] === $name |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $definition |
| 60 | 60 | ->expects($this->once()) |
| 61 | 61 | ->method('addArgument') |
| 62 | - ->with($this->callback(function ($reference) { |
|
| 62 | + ->with($this->callback(function($reference) { |
|
| 63 | 63 | return $reference instanceof Reference |
| 64 | 64 | && (string) $reference === 'lug.resource.routing.parameter_resolver'; |
| 65 | 65 | })) |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $definition |
| 69 | 69 | ->expects($this->once()) |
| 70 | 70 | ->method('setConfigurator') |
| 71 | - ->with($this->callback(function (array $configurator) { |
|
| 71 | + ->with($this->callback(function(array $configurator) { |
|
| 72 | 72 | return isset($configurator[0]) |
| 73 | 73 | && isset($configurator[1]) |
| 74 | 74 | && $configurator[0] instanceof Reference |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $definition |
| 118 | 118 | ->expects($this->once()) |
| 119 | 119 | ->method('setConfigurator') |
| 120 | - ->with($this->callback(function (array $configurator) { |
|
| 120 | + ->with($this->callback(function(array $configurator) { |
|
| 121 | 121 | return isset($configurator[0]) |
| 122 | 122 | && isset($configurator[1]) |
| 123 | 123 | && $configurator[0] instanceof Reference |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | ->method('addMethodCall') |
| 64 | 64 | ->with( |
| 65 | 65 | $this->identicalTo('offsetSet'), |
| 66 | - $this->callback(function (array $args) use ($repository, $resource) { |
|
| 66 | + $this->callback(function(array $args) use ($repository, $resource) { |
|
| 67 | 67 | return isset($args[0]) |
| 68 | 68 | && isset($args[1]) |
| 69 | 69 | && $args[0] === $resource |