@@ -29,10 +29,10 @@ |
||
29 | 29 | { |
30 | 30 | $resolver |
31 | 31 | ->setDefaults([ |
32 | - 'label' => function (Options $options) { |
|
32 | + 'label' => function(Options $options) { |
|
33 | 33 | return 'lug.'.$options['grid']->getDefinition()->getResource()->getName().'.batch.all'; |
34 | 34 | }, |
35 | - 'label_translation_arguments' => function (Options $options) { |
|
35 | + 'label_translation_arguments' => function(Options $options) { |
|
36 | 36 | return ['%count%' => count($options['grid']->getDataSource())]; |
37 | 37 | }, |
38 | 38 | ]) |
@@ -98,7 +98,7 @@ |
||
98 | 98 | ->method('setDefinition') |
99 | 99 | ->withConsecutive( |
100 | 100 | [$service.'.internal', $definition], |
101 | - [$service, $this->callback(function ($definition) use ($service, $types) { |
|
101 | + [$service, $this->callback(function($definition) use ($service, $types) { |
|
102 | 102 | $result = $definition instanceof Definition |
103 | 103 | && $definition->getClass() === LazyServiceRegistry::class |
104 | 104 | && count($definition->getArguments()) === 2 |
@@ -167,7 +167,7 @@ |
||
167 | 167 | } |
168 | 168 | |
169 | 169 | /** |
170 | - * @return Definition|\PHPUnit_Framework_MockObject_MockObject |
|
170 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
171 | 171 | */ |
172 | 172 | private function createDefinitionMock() |
173 | 173 | { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | ->method('addMethodCall') |
82 | 82 | ->with( |
83 | 83 | $this->identicalTo('offsetSet'), |
84 | - $this->callback(function (array $args) use ($service, $name) { |
|
84 | + $this->callback(function(array $args) use ($service, $name) { |
|
85 | 85 | return isset($args[0]) |
86 | 86 | && isset($args[1]) |
87 | 87 | && $args[0] === $name |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
119 | + * @return ContainerBuilder |
|
120 | 120 | */ |
121 | 121 | private function createContainerBuilderMock() |
122 | 122 | { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * @return \PHPUnit_Framework_MockObject_MockObject|Definition |
|
129 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
130 | 130 | */ |
131 | 131 | private function createDefinitionMock() |
132 | 132 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function buildView(FormView $view, FormInterface $form, array $options) |
44 | 44 | { |
45 | - $locales = array_flip(array_map(function (LocaleInterface $locale) { |
|
45 | + $locales = array_flip(array_map(function(LocaleInterface $locale) { |
|
46 | 46 | return (string) $locale->getCode(); |
47 | 47 | }, $this->localeRepository->findAll())); |
48 | 48 |
@@ -115,6 +115,8 @@ |
||
115 | 115 | |
116 | 116 | /** |
117 | 117 | * {@inheritdoc} |
118 | + * @param string $alias |
|
119 | + * @param string $indexBy |
|
118 | 120 | */ |
119 | 121 | public function createQueryBuilderForCollection($alias = null, $indexBy = null) |
120 | 122 | { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | $expr |
385 | 385 | ->expects($this->once()) |
386 | 386 | ->method('equals') |
387 | - ->with($this->callback(function ($parameter) use ($regex) { |
|
387 | + ->with($this->callback(function($parameter) use ($regex) { |
|
388 | 388 | return $parameter instanceof \MongoRegex && (string) $parameter === $regex; |
389 | 389 | })) |
390 | 390 | ->will($this->returnSelf()); |
@@ -411,7 +411,7 @@ discard block |
||
411 | 411 | $expr |
412 | 412 | ->expects($this->once()) |
413 | 413 | ->method('not') |
414 | - ->with($this->callback(function ($parameter) use ($regex) { |
|
414 | + ->with($this->callback(function($parameter) use ($regex) { |
|
415 | 415 | return $parameter instanceof \MongoRegex && (string) $parameter === $regex; |
416 | 416 | })) |
417 | 417 | ->will($this->returnSelf()); |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | } |
520 | 520 | |
521 | 521 | /** |
522 | - * @return \PHPUnit_Framework_MockObject_MockObject|Builder |
|
522 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
523 | 523 | */ |
524 | 524 | private function createQueryBuilderMock() |
525 | 525 | { |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | } |
528 | 528 | |
529 | 529 | /** |
530 | - * @return \PHPUnit_Framework_MockObject_MockObject|Expr |
|
530 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
531 | 531 | */ |
532 | 532 | private function createExprMock() |
533 | 533 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | ->method('replaceArgument') |
62 | 62 | ->with( |
63 | 63 | $this->identicalTo(0), |
64 | - $this->callback(function ($reference) { |
|
64 | + $this->callback(function($reference) { |
|
65 | 65 | return $reference instanceof Reference |
66 | 66 | && (string) $reference === 'lug.resource.routing.parameter_resolver'; |
67 | 67 | }) |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @return \PHPUnit_Framework_MockObject_MockObject|UrlGeneratorInterface |
|
165 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
166 | 166 | */ |
167 | 167 | private function createUrlGeneratorMock() |
168 | 168 | { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | /** |
173 | - * @return \PHPUnit_Framework_MockObject_MockObject|PropertyAccessorInterface |
|
173 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
174 | 174 | */ |
175 | 175 | private function createPropertyAccessorMock() |
176 | 176 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
181 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormFactoryInterface |
|
181 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
182 | 182 | */ |
183 | 183 | private function createFormFactoryMock() |
184 | 184 | { |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
189 | - * @return \PHPUnit_Framework_MockObject_MockObject|ActionInterface |
|
189 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
190 | 190 | */ |
191 | 191 | private function createActionMock() |
192 | 192 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormInterface |
|
197 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
198 | 198 | */ |
199 | 199 | private function createFormMock() |
200 | 200 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | |
204 | 204 | /** |
205 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormView |
|
205 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
206 | 206 | */ |
207 | 207 | private function createFormViewMock() |
208 | 208 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return \PHPUnit_Framework_MockObject_MockObject|UrlGeneratorInterface |
|
171 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
172 | 172 | */ |
173 | 173 | private function createUrlGeneratorMock() |
174 | 174 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @return \PHPUnit_Framework_MockObject_MockObject|PropertyAccessorInterface |
|
179 | + * @return \PHPUnit_Framework_MockObject_MockObject |
|
180 | 180 | */ |
181 | 181 | private function createPropertyAccessorMock() |
182 | 182 | { |