Passed
Push — latest ( 570e9a...8e76fa )
by Mark
03:33
created
src/Configuration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     protected function defineExclude(OptionsResolver $resolver): void
71 71
     {
72
-        $resolver->setDefault('exclude', static function (OptionsResolver $resolver): void {
72
+        $resolver->setDefault('exclude', static function(OptionsResolver $resolver): void {
73 73
             $resolver->define('shortcodes')
74 74
                 ->allowedTypes('string', 'string[]')
75 75
                 ->default([])
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                  *
80 80
                  * @return string[]
81 81
                  */
82
-                    static function (Options $options, $value): array {
82
+                    static function(Options $options, $value): array {
83 83
                         return Normalize::shortcodes($value);
84 84
                     }
85 85
                 );
@@ -90,11 +90,11 @@  discard block
 block discarded – undo
90 90
     {
91 91
         $resolver->define('locale')
92 92
             ->allowedTypes('string')
93
-            ->allowedValues(static function (string $value): bool {
94
-                return ! ! Normalize::locale($value);
93
+            ->allowedValues(static function(string $value): bool {
94
+                return !!Normalize::locale($value);
95 95
             })
96 96
             ->default('en')
97
-            ->normalize(static function (Options $options, string $value): string {
97
+            ->normalize(static function(Options $options, string $value): string {
98 98
                 return Normalize::locale($value);
99 99
             });
100 100
     }
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $resolver->define('native')
105 105
             ->allowedTypes('bool')
106
-            ->default(static function (Options $options): bool {
106
+            ->default(static function(Options $options): bool {
107 107
                 return \in_array($options['locale'], DatasetInterface::NON_LATIN_LOCALES, true);
108 108
             })
109
-            ->normalize(static function (Options $options, bool $value) {
109
+            ->normalize(static function(Options $options, bool $value) {
110 110
                 return $value && \in_array($options['locale'], DatasetInterface::NON_LATIN_LOCALES, true);
111 111
             });
112 112
     }
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
     {
136 136
         foreach ((array) $values as $value) {
137 137
             \assert(\is_string($value));
138
-            if (! \in_array($value, ShortcodeInterface::SUPPORTED_PRESETS, true)) {
138
+            if (!\in_array($value, ShortcodeInterface::SUPPORTED_PRESETS, true)) {
139 139
                 throw new InvalidOptionsException(\sprintf(
140 140
                     'The option "preset" with value "%s" is invalid. Accepted values are: %s.',
141 141
                     $value,
142
-                    \implode(', ', \array_map(static function ($s) {
142
+                    \implode(', ', \array_map(static function($s) {
143 143
                         return \sprintf('"%s"', $s);
144 144
                     }, ShortcodeInterface::SUPPORTED_PRESETS))
145 145
                 ));
Please login to merge, or discard this patch.