@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $sortType |
| 101 | 101 | ->expects($this->once()) |
| 102 | 102 | ->method('configureOptions') |
| 103 | - ->with($this->callback(function (OptionsResolver $resolver) use ($options) { |
|
| 103 | + ->with($this->callback(function(OptionsResolver $resolver) use ($options) { |
|
| 104 | 104 | $resolver->setDefined(array_merge(['builder', 'sort', 'grid'], array_keys($options))); |
| 105 | 105 | |
| 106 | 106 | return true; |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $sortType |
| 101 | 101 | ->expects($this->once()) |
| 102 | 102 | ->method('configureOptions') |
| 103 | - ->with($this->callback(function (OptionsResolver $resolver) use ($options) { |
|
| 103 | + ->with($this->callback(function(OptionsResolver $resolver) use ($options) { |
|
| 104 | 104 | $resolver->setDefined(array_merge(['builder', 'sort', 'grid'], array_keys($options))); |
| 105 | 105 | |
| 106 | 106 | return true; |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $sortType |
| 101 | 101 | ->expects($this->once()) |
| 102 | 102 | ->method('configureOptions') |
| 103 | - ->with($this->callback(function (OptionsResolver $resolver) use ($options) { |
|
| 103 | + ->with($this->callback(function(OptionsResolver $resolver) use ($options) { |
|
| 104 | 104 | $resolver->setDefined(array_merge(['builder', 'sort', 'grid'], array_keys($options))); |
| 105 | 105 | |
| 106 | 106 | return true; |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $sortType |
| 101 | 101 | ->expects($this->once()) |
| 102 | 102 | ->method('configureOptions') |
| 103 | - ->with($this->callback(function (OptionsResolver $resolver) use ($options) { |
|
| 103 | + ->with($this->callback(function(OptionsResolver $resolver) use ($options) { |
|
| 104 | 104 | $resolver->setDefined(array_merge(['builder', 'sort', 'grid'], array_keys($options))); |
| 105 | 105 | |
| 106 | 106 | return true; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | $resolver |
| 71 | 71 | ->setRequired('resource') |
| 72 | 72 | ->setAllowedTypes('resource', ['string', ResourceInterface::class]) |
| 73 | - ->setNormalizer('resource', function (Options $options, $resource) { |
|
| 73 | + ->setNormalizer('resource', function(Options $options, $resource) { |
|
| 74 | 74 | return is_string($resource) ? $this->resourceRegistry[$resource] : $resource; |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $builder |
| 44 | 44 | ->add($builder->create('type', ChoiceType::class, [ |
| 45 | 45 | 'choices' => array_combine( |
| 46 | - array_map(function ($choice) use ($options) { |
|
| 46 | + array_map(function($choice) use ($options) { |
|
| 47 | 47 | return $options['label_prefix'].'.type.'.$choice; |
| 48 | 48 | }, $choices = DateTimeType::getTypes()), |
| 49 | 49 | $choices |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $builder |
| 44 | 44 | ->add($builder->create('type', ChoiceType::class, [ |
| 45 | 45 | 'choices' => array_combine( |
| 46 | - array_map(function ($choice) use ($options) { |
|
| 46 | + array_map(function($choice) use ($options) { |
|
| 47 | 47 | return $options['label_prefix'].'.type.'.$choice; |
| 48 | 48 | }, $choices = DateTimeType::getTypes()), |
| 49 | 49 | $choices |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $builder |
| 44 | 44 | ->add($builder->create('type', ChoiceType::class, [ |
| 45 | 45 | 'choices' => array_combine( |
| 46 | - array_map(function ($choice) use ($options) { |
|
| 46 | + array_map(function($choice) use ($options) { |
|
| 47 | 47 | return $options['label_prefix'].'.type.'.$choice; |
| 48 | 48 | }, $choices = DateTimeType::getTypes()), |
| 49 | 49 | $choices |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | |
| 126 | 126 | $this->buildForm($form, $choices); |
| 127 | 127 | |
| 128 | - return array_map(function ($choice) use ($choiceValue) { |
|
| 128 | + return array_map(function($choice) use ($choiceValue) { |
|
| 129 | 129 | return call_user_func($choiceValue, $choice); |
| 130 | 130 | }, $choices); |
| 131 | 131 | } |