@@ -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 |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
| 54 | + * @return ContainerBuilder |
|
| 55 | 55 | */ |
| 56 | 56 | private function createContainerBuilderMock() |
| 57 | 57 | { |
@@ -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 | })) |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
| 54 | + * @return ContainerBuilder |
|
| 55 | 55 | */ |
| 56 | 56 | private function createContainerBuilderMock() |
| 57 | 57 | { |
@@ -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 |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
| 54 | + * @return ContainerBuilder |
|
| 55 | 55 | */ |
| 56 | 56 | private function createContainerBuilderMock() |
| 57 | 57 | { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $children = $cssRewriteFilterNode->children(); |
| 60 | 60 | $children->scalarNode('web_directory') |
| 61 | 61 | ->validate() |
| 62 | - ->ifTrue(function ($webDirectory) { |
|
| 62 | + ->ifTrue(function($webDirectory) { |
|
| 63 | 63 | return !file_exists($webDirectory); |
| 64 | 64 | }) |
| 65 | 65 | ->thenInvalid('The css rewrite web directory %s does not exist.') |
@@ -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 | }, |
@@ -63,10 +63,10 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $resolver |
| 65 | 65 | ->setDefaults([ |
| 66 | - 'constraints' => function (Options $options) { |
|
| 66 | + 'constraints' => function(Options $options) { |
|
| 67 | 67 | return new GridSortingConstraint(['grid' => $options['grid']]); |
| 68 | 68 | }, |
| 69 | - 'error_bubbling' => function (Options $options) { |
|
| 69 | + 'error_bubbling' => function(Options $options) { |
|
| 70 | 70 | return !$this->parameterResolver->resolveApi(); |
| 71 | 71 | }, |
| 72 | 72 | ]) |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | { |
| 29 | 29 | $resolver |
| 30 | 30 | ->setDefaults([ |
| 31 | - 'label' => function (Options $options) { |
|
| 31 | + 'label' => function(Options $options) { |
|
| 32 | 32 | return $options['filter']->getLabel(); |
| 33 | 33 | }, |
| 34 | - 'label_prefix' => function (Options $options) { |
|
| 34 | + 'label_prefix' => function(Options $options) { |
|
| 35 | 35 | return 'lug.filter.'.$options['filter']->getType(); |
| 36 | 36 | }, |
| 37 | 37 | ]) |