Completed
Pull Request — master (#144)
by
unknown
07:02
created
src/Field/LinkField.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 '_self',
57 57
                 '_blank',
58 58
             ])
59
-            ->setNormalizer('route', function (Options $options, $value) use ($actionConfiguration) {
59
+            ->setNormalizer('route', function(Options $options, $value) use ($actionConfiguration) {
60 60
                 // route or url should be defined
61 61
                 if (!$value && !$options->offsetGet('url') && !$options->offsetGet('admin')) {
62 62
                     throw new InvalidOptionsException('Either an url or a route should be defined');
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
                 return $value;
74 74
             })
75
-            ->setNormalizer('admin', function (Options $options, $value) {
75
+            ->setNormalizer('admin', function(Options $options, $value) {
76 76
                 // if a Admin is defined, an Action should be defined too
77 77
                 if ($value && !$options->offsetGet('action')) {
78 78
                     throw new InvalidOptionsException('An Action should be provided if an Admin is provided');
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
                 return $value;
82 82
             })
83
-            ->setNormalizer('parameters', function (Options $options, $values) {
83
+            ->setNormalizer('parameters', function(Options $options, $values) {
84 84
                 $cleanedValues = [];
85 85
 
86 86
                 foreach ($values as $name => $method) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
                 return $cleanedValues;
94 94
             })
95
-            ->setNormalizer('text', function (Options $options, $value) use ($actionConfiguration) {
95
+            ->setNormalizer('text', function(Options $options, $value) use ($actionConfiguration) {
96 96
                 if ($value) {
97 97
                     return $value;
98 98
                 }
Please login to merge, or discard this patch.