Completed
Branch master (20723c)
by Eric
36:49
created
src/Bundle/GridBundle/Form/Type/GridSortingType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
     {
64 64
         $resolver
65 65
             ->setDefaults([
66
-                'constraints' => function (Options $options) {
66
+                'constraints' => function(Options $options) {
67 67
                     return new GridSortingConstraint(['grid' => $options['grid']]);
68 68
                 },
69
-                'error_bubbling' => function (Options $options) {
69
+                'error_bubbling' => function(Options $options) {
70 70
                     return !$this->parameterResolver->resolveApi();
71 71
                 },
72 72
             ])
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 = ResourceType::getTypes()),
49 49
                     $choices
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/AbstractFilterType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     {
29 29
         $resolver
30 30
             ->setDefaults([
31
-                'label' => function (Options $options) {
31
+                'label' => function(Options $options) {
32 32
                     return $options['filter']->getLabel();
33 33
                 },
34
-                'label_prefix' => function (Options $options) {
34
+                'label_prefix' => function(Options $options) {
35 35
                     return 'lug.filter.'.$options['filter']->getType();
36 36
                 },
37 37
             ])
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
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $builder
43 43
             ->add($builder->create('type', ChoiceType::class, [
44 44
                 'choices' => array_combine(
45
-                    array_map(function ($choice) use ($options) {
45
+                    array_map(function($choice) use ($options) {
46 46
                         return $options['label_prefix'].'.type.'.$choice;
47 47
                     }, $choices = TextType::getTypes()),
48 48
                     $choices
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
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $builder
43 43
             ->add($builder->create('type', ChoiceType::class, [
44 44
                 'choices' => array_combine(
45
-                    array_map(function ($choice) use ($options) {
45
+                    array_map(function($choice) use ($options) {
46 46
                         return $options['label_prefix'].'.type.'.$choice;
47 47
                     }, $choices = NumberType::getTypes()),
48 48
                     $choices
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/BooleanFilterType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
         parent::configureOptions($resolver);
64 64
 
65 65
         $resolver->setDefaults([
66
-            'choices' => function (Options $options) {
66
+            'choices' => function(Options $options) {
67 67
                 return array_combine(
68
-                    array_map(function ($choice) use ($options) {
68
+                    array_map(function($choice) use ($options) {
69 69
                         return $options['label_prefix'].'.'.$choice;
70 70
                     }, $choices = ['true', 'false']),
71 71
                     $choices
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Filter/DateTimeFilterType.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/GridLimitType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
         $resolver
32 32
             ->setDefaults([
33 33
                 'label'      => 'lug.limit',
34
-                'empty_data' => function (Options $options) {
34
+                'empty_data' => function(Options $options) {
35 35
                     $grid = $options['grid'];
36 36
 
37 37
                     return $grid->hasOption('limit_default') ? (string) $grid->getOption('limit_default') : '10';
38 38
                 },
39
-                'constraints' => function (Options $options) {
39
+                'constraints' => function(Options $options) {
40 40
                     $grid = $options['grid'];
41 41
 
42 42
                     return new Range([
Please login to merge, or discard this patch.
src/Bundle/GridBundle/Form/Type/Batch/GridBatchTypeType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,12 +31,12 @@
 block discarded – undo
31 31
     {
32 32
         $resolver
33 33
             ->setDefaults([
34
-                'choices' => function (Options $options) {
34
+                'choices' => function(Options $options) {
35 35
                     return array_combine(
36
-                        array_map(function (BatchInterface $batch) {
36
+                        array_map(function(BatchInterface $batch) {
37 37
                             return $batch->getLabel();
38 38
                         }, $batches = $options['grid']->getDefinition()->getBatches()),
39
-                        array_map(function (BatchInterface $batch) {
39
+                        array_map(function(BatchInterface $batch) {
40 40
                             return $batch->getName();
41 41
                         }, $batches)
42 42
                     );
Please login to merge, or discard this patch.