@@ -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 | { |
@@ -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 |
@@ -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 |
@@ -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 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @return \PHPUnit_Framework_MockObject_MockObject|AdapterInterface |
|
44 | + * @return AdapterInterface |
|
45 | 45 | */ |
46 | 46 | private function createAdapterMock() |
47 | 47 | { |
@@ -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()); |
@@ -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 | $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 | })) |