@@ -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 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /** |
| 180 | - * @return \PHPUnit_Framework_MockObject_MockObject|ParameterResolverInterface |
|
| 180 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 181 | 181 | */ |
| 182 | 182 | private function createParameterResolverMock() |
| 183 | 183 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | /** |
| 188 | - * @return \PHPUnit_Framework_MockObject_MockObject|ActionEvent |
|
| 188 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 189 | 189 | */ |
| 190 | 190 | private function createActionEventMock() |
| 191 | 191 | { |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormInterface |
|
| 196 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 197 | 197 | */ |
| 198 | 198 | private function createFormMock() |
| 199 | 199 | { |
@@ -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); |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | } |
| 329 | 329 | |
| 330 | 330 | /** |
| 331 | - * @return \PHPUnit_Framework_MockObject_MockObject|ParameterResolverInterface |
|
| 331 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 332 | 332 | */ |
| 333 | 333 | private function createParameterResolverMock() |
| 334 | 334 | { |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | } |
| 337 | 337 | |
| 338 | 338 | /** |
| 339 | - * @return \PHPUnit_Framework_MockObject_MockObject|PagerfantaFactory |
|
| 339 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 340 | 340 | */ |
| 341 | 341 | private function createPagerfantaFactoryMock() |
| 342 | 342 | { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | } |
| 345 | 345 | |
| 346 | 346 | /** |
| 347 | - * @return \PHPUnit_Framework_MockObject_MockObject|RequestStack |
|
| 347 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 348 | 348 | */ |
| 349 | 349 | private function createRequestStackMock() |
| 350 | 350 | { |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | /** |
| 355 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
| 355 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 356 | 356 | */ |
| 357 | 357 | private function createViewEventMock() |
| 358 | 358 | { |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | /** |
| 363 | - * @return \PHPUnit_Framework_MockObject_MockObject|View |
|
| 363 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 364 | 364 | */ |
| 365 | 365 | private function createViewMock() |
| 366 | 366 | { |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | /** |
| 371 | - * @return \PHPUnit_Framework_MockObject_MockObject|Pagerfanta |
|
| 371 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 372 | 372 | */ |
| 373 | 373 | private function createPagerfantaMock() |
| 374 | 374 | { |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | } |
| 377 | 377 | |
| 378 | 378 | /** |
| 379 | - * @return \PHPUnit_Framework_MockObject_MockObject|Request |
|
| 379 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 380 | 380 | */ |
| 381 | 381 | private function createRequestMock() |
| 382 | 382 | { |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | } |
| 390 | 390 | |
| 391 | 391 | /** |
| 392 | - * @return \PHPUnit_Framework_MockObject_MockObject|ParameterBag |
|
| 392 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 393 | 393 | */ |
| 394 | 394 | private function createParameterBagMock() |
| 395 | 395 | { |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | } |
| 398 | 398 | |
| 399 | 399 | /** |
| 400 | - * @return \PHPUnit_Framework_MockObject_MockObject|ResourceInterface |
|
| 400 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
| 401 | 401 | */ |
| 402 | 402 | private function createResourceMock() |
| 403 | 403 | { |
@@ -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 |
@@ -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 |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $xmlHttpRequestForm |
| 98 | 98 | ->expects($this->once()) |
| 99 | 99 | ->method('addError') |
| 100 | - ->with($this->callback(function (FormError $error) { |
|
| 100 | + ->with($this->callback(function(FormError $error) { |
|
| 101 | 101 | return $error->getMessage() === 'The validation has been disabled.'; |
| 102 | 102 | })); |
| 103 | 103 | |
@@ -71,11 +71,11 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $resolver |
| 73 | 73 | ->setDefaults([ |
| 74 | - 'persistent' => function (Options $options) { |
|
| 74 | + 'persistent' => function(Options $options) { |
|
| 75 | 75 | return $options['grid']->hasOption('persistent') |
| 76 | 76 | && $options['grid']->getOption('persistent'); |
| 77 | 77 | }, |
| 78 | - 'xml_http_request' => function (Options $options) { |
|
| 78 | + 'xml_http_request' => function(Options $options) { |
|
| 79 | 79 | return $options['grid']->hasOption('xml_http_request') |
| 80 | 80 | && $options['grid']->getOption('xml_http_request'); |
| 81 | 81 | }, |