| @@ -97,7 +97,7 @@ | ||
| 97 | 97 | $first = $fields; | 
| 98 | 98 | $headersCount = $fieldsCount; | 
| 99 | 99 | |
| 100 | -                $headers = array_map(function ($value) { | |
| 100 | +                $headers = array_map(function($value) { | |
| 101 | 101 | return explode($this->keySeparator, $value); | 
| 102 | 102 | }, $fields); | 
| 103 | 103 | |
| @@ -151,7 +151,7 @@ | ||
| 151 | 151 | |
| 152 | 152 | $options = $this->getOptions(); | 
| 153 | 153 | |
| 154 | -        array_walk($options, function (&$value, $option) { | |
| 154 | +        array_walk($options, function(&$value, $option) { | |
| 155 | 155 |              if (is_string($value)) { | 
| 156 | 156 | $value = '\''.$value.'\''; | 
| 157 | 157 | } | 
| @@ -276,10 +276,10 @@ discard block | ||
| 276 | 276 |              ->setAllowedValues('exclusion_policy', [ExclusionPolicy::NONE, ExclusionPolicy::ALL]) | 
| 277 | 277 |              ->setAllowedValues('order', $emptyValidator) | 
| 278 | 278 |              ->setAllowedValues('xml_root', $emptyValidator) | 
| 279 | -            ->setAllowedValues('properties', function ($properties) { | |
| 279 | +            ->setAllowedValues('properties', function($properties) { | |
| 280 | 280 | return count($properties) > 0; | 
| 281 | 281 | }) | 
| 282 | -            ->setNormalizer('order', function (Options $options, $order) use ($emptyValidator) { | |
| 282 | +            ->setNormalizer('order', function(Options $options, $order) use ($emptyValidator) { | |
| 283 | 283 |                  if (is_string($order)) { | 
| 284 | 284 |                      if (strcasecmp($order, 'ASC') === 0 || strcasecmp($order, 'DESC') === 0) { | 
| 285 | 285 | return strtoupper($order); | 
| @@ -303,7 +303,7 @@ discard block | ||
| 303 | 303 | |
| 304 | 304 | return $order; | 
| 305 | 305 | }) | 
| 306 | -            ->setNormalizer('properties', function (Options $options, array $properties) { | |
| 306 | +            ->setNormalizer('properties', function(Options $options, array $properties) { | |
| 307 | 307 |                  if ($this->propertyResolver === null) { | 
| 308 | 308 | $this->configurePropertyOptions($this->propertyResolver = new OptionsResolver()); | 
| 309 | 309 | } | 
| @@ -392,7 +392,7 @@ discard block | ||
| 392 | 392 |              ->setAllowedValues('until', $emptyValidator) | 
| 393 | 393 |              ->setAllowedValues('xml_entry', $emptyValidator) | 
| 394 | 394 |              ->setAllowedValues('xml_entry_attribute', $emptyValidator) | 
| 395 | -            ->setAllowedValues('groups', function (array $groups) use ($emptyValidator) { | |
| 395 | +            ->setAllowedValues('groups', function(array $groups) use ($emptyValidator) { | |
| 396 | 396 |                  foreach ($groups as $group) { | 
| 397 | 397 |                      if (!is_string($group) || !call_user_func($emptyValidator, $group)) { | 
| 398 | 398 | return false; | 
| @@ -401,7 +401,7 @@ discard block | ||
| 401 | 401 | |
| 402 | 402 | return count($groups) > 0; | 
| 403 | 403 | }) | 
| 404 | -            ->setAllowedValues('max_depth', function ($maxDepth) { | |
| 404 | +            ->setAllowedValues('max_depth', function($maxDepth) { | |
| 405 | 405 | return $maxDepth >= 0; | 
| 406 | 406 | }); | 
| 407 | 407 | } | 
| @@ -412,7 +412,7 @@ discard block | ||
| 412 | 412 | private function getEmptyValidator() | 
| 413 | 413 |      { | 
| 414 | 414 |          if ($this->emptyValidator === null) { | 
| 415 | -            $this->emptyValidator = function ($value) { | |
| 415 | +            $this->emptyValidator = function($value) { | |
| 416 | 416 | return !empty($value); | 
| 417 | 417 | }; | 
| 418 | 418 | } |