@@ -259,7 +259,7 @@ |
||
259 | 259 | } |
260 | 260 | |
261 | 261 | /** |
262 | - * @return \PHPUnit_Framework_MockObject_MockObject|EntityRepository |
|
262 | + * @return EntityManagerInterface |
|
263 | 263 | */ |
264 | 264 | private function createRepositoryMock() |
265 | 265 | { |
@@ -100,7 +100,7 @@ |
||
100 | 100 | ->setAllowedTypes('resource', ['string', ResourceInterface::class]) |
101 | 101 | ->setAllowedTypes('collection', 'bool') |
102 | 102 | ->setAllowedTypes('path', ['string', 'null']) |
103 | - ->setNormalizer('resource', function (Options $options, $resource) { |
|
103 | + ->setNormalizer('resource', function(Options $options, $resource) { |
|
104 | 104 | return is_string($resource) ? $this->resourceRegistry[$resource] : $resource; |
105 | 105 | }); |
106 | 106 | } |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $resolver |
80 | 80 | ->setRequired('resource') |
81 | 81 | ->setAllowedTypes('resource', ['string', ResourceInterface::class]) |
82 | - ->setNormalizer('resource', function (Options $options, $resource) { |
|
82 | + ->setNormalizer('resource', function(Options $options, $resource) { |
|
83 | 83 | return is_string($resource) ? $this->resourceRegistry[$resource] : $resource; |
84 | 84 | }); |
85 | 85 | } |
@@ -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() === LazyRegistry::class |
104 | 104 | && count($definition->getArguments()) === 2 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | private function findResource($resource, array &$criteria) |
59 | 59 | { |
60 | - array_walk_recursive($criteria, function (&$value) { |
|
60 | + array_walk_recursive($criteria, function(&$value) { |
|
61 | 61 | if ($value === 'yes') { |
62 | 62 | $value = true; |
63 | 63 | } elseif ($value === 'no') { |
@@ -246,7 +246,7 @@ |
||
246 | 246 | $data = array_merge($bag->get($form->getName(), []), $request->files->get($form->getName(), [])); |
247 | 247 | } |
248 | 248 | |
249 | - array_walk_recursive($data, function (&$value) { |
|
249 | + array_walk_recursive($data, function(&$value) { |
|
250 | 250 | if ($value === false) { |
251 | 251 | $value = 'false'; |
252 | 252 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $builder |
48 | 48 | ->add($builder->create('type', ChoiceType::class, [ |
49 | 49 | 'choices' => array_combine( |
50 | - array_map(function ($choice) use ($options) { |
|
50 | + array_map(function($choice) use ($options) { |
|
51 | 51 | return $options['label_prefix'].'.type.'.$choice; |
52 | 52 | }, $choices = ResourceType::getTypes($collection)), |
53 | 53 | $choices |
@@ -29,7 +29,7 @@ |
||
29 | 29 | { |
30 | 30 | $builder->add('translations', TranslationsFormsType::class, [ |
31 | 31 | 'form_type' => $options['resource']->getRelation('translation')->getForm(), |
32 | - 'empty_data' => function () { |
|
32 | + 'empty_data' => function() { |
|
33 | 33 | return new ArrayCollection(); |
34 | 34 | }, |
35 | 35 | ]); |