@@ -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()); |
@@ -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 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $builder->add('translations', TranslationsFormsType::class, [ |
31 | 31 | 'form_type' => $options['resource']->getTranslation()->getForm(), |
32 | - 'empty_data' => function () { |
|
32 | + 'empty_data' => function() { |
|
33 | 33 | return new ArrayCollection(); |
34 | 34 | }, |
35 | 35 | ]); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | private function getCallback() |
64 | 64 | { |
65 | - return function (LocaleInterface $locale) { |
|
65 | + return function(LocaleInterface $locale) { |
|
66 | 66 | return $locale->getCode(); |
67 | 67 | }; |
68 | 68 | } |
@@ -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 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $acceptLanguage = trim($request->headers->get('Accept-Language')); |
96 | 96 | |
97 | 97 | if (!empty($acceptLanguage)) { |
98 | - $locales = array_map(function (AcceptLanguage $acceptLanguage) { |
|
98 | + $locales = array_map(function(AcceptLanguage $acceptLanguage) { |
|
99 | 99 | return $acceptLanguage->getType(); |
100 | 100 | }, $this->localeNegotiator->parse($acceptLanguage)); |
101 | 101 | } |
@@ -75,7 +75,7 @@ |
||
75 | 75 | ->method('dispatch') |
76 | 76 | ->with( |
77 | 77 | $this->identicalTo(MenuBuilderEvents::BUILD), |
78 | - $this->callback(function (MenuBuilderEvent $event) use ($item) { |
|
78 | + $this->callback(function(MenuBuilderEvent $event) use ($item) { |
|
79 | 79 | return $event->getFactory() === $this->factory |
80 | 80 | && $event->getItem() === $item; |
81 | 81 | }) |