Completed
Pull Request — master (#75)
by Eric
85:36 queued 80:20
created
src/Component/Grid/Filter/Type/ResourceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/NumberFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/TextFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/ResourceFilterType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
GridBundle/Form/EventSubscriber/Batch/AbstractGridBatchSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Batch/GridBatchAllType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
     {
30 30
         $resolver
31 31
             ->setDefaults([
32
-                'label' => function (Options $options) {
32
+                'label' => function(Options $options) {
33 33
                     return 'lug.'.$options['grid']->getDefinition()->getResource()->getName().'.batch.all';
34 34
                 },
35
-                'label_translation_arguments' => function (Options $options) {
35
+                'label_translation_arguments' => function(Options $options) {
36 36
                     return ['%count%' => count($options['grid']->getDataSource())];
37 37
                 },
38 38
             ])
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/RegisterRegistryPassTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Tests/DependencyInjection/Compiler/ConvertRegistryPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Component/Locale/Form/Type/LocaleCodeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.