@@ -276,7 +276,7 @@ |
||
276 | 276 | } |
277 | 277 | |
278 | 278 | /** |
279 | - * @return \PHPUnit_Framework_MockObject_MockObject|ActionEvent |
|
279 | + * @return ActionEvent |
|
280 | 280 | */ |
281 | 281 | private function createActionEventMock() |
282 | 282 | { |
@@ -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 |
@@ -316,7 +316,7 @@ |
||
316 | 316 | } |
317 | 317 | |
318 | 318 | /** |
319 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
319 | + * @return ViewEvent |
|
320 | 320 | */ |
321 | 321 | private function createViewEventMock() |
322 | 322 | { |
@@ -378,7 +378,7 @@ |
||
378 | 378 | } |
379 | 379 | |
380 | 380 | /** |
381 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
381 | + * @return ViewEvent |
|
382 | 382 | */ |
383 | 383 | private function createViewEventMock() |
384 | 384 | { |
@@ -352,7 +352,7 @@ |
||
352 | 352 | } |
353 | 353 | |
354 | 354 | /** |
355 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
355 | + * @return ViewEvent |
|
356 | 356 | */ |
357 | 357 | private function createViewEventMock() |
358 | 358 | { |
@@ -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); |
@@ -235,7 +235,7 @@ |
||
235 | 235 | } |
236 | 236 | |
237 | 237 | /** |
238 | - * @return \PHPUnit_Framework_MockObject_MockObject|ViewEvent |
|
238 | + * @return ViewEvent |
|
239 | 239 | */ |
240 | 240 | private function createViewEventMock() |
241 | 241 | { |
@@ -188,7 +188,7 @@ |
||
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | - * @return \PHPUnit_Framework_MockObject_MockObject|LifecycleEventArgs |
|
191 | + * @return LifecycleEventArgs |
|
192 | 192 | */ |
193 | 193 | private function createLifecycleEventArgsMock() |
194 | 194 | { |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @return \PHPUnit_Framework_MockObject_MockObject|FormRegistry |
|
145 | + * @return FormRegistry |
|
146 | 146 | */ |
147 | 147 | private function createFormRegistryMock() |
148 | 148 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @return \PHPUnit_Framework_MockObject_MockObject|ManagerRegistry |
|
155 | + * @return ManagerRegistry |
|
156 | 156 | */ |
157 | 157 | private function createManagerRegistryMock() |
158 | 158 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * @return \PHPUnit_Framework_MockObject_MockObject|ContainerBuilder |
|
90 | + * @return ContainerBuilder |
|
91 | 91 | */ |
92 | 92 | private function createContainerBuilderMock() |
93 | 93 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | ->method('setDefinition') |
56 | 56 | ->with( |
57 | 57 | $this->identicalTo($service.'.menu'), |
58 | - $this->callback(function (Definition $definition) use ($service, $alias) { |
|
58 | + $this->callback(function(Definition $definition) use ($service, $alias) { |
|
59 | 59 | return $definition->getClass() === ItemInterface::class |
60 | 60 | && $definition->getTag('knp_menu.menu') === [['alias' => $alias]] |
61 | 61 | && is_array($factory = $definition->getFactory()) |
@@ -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 | { |