@@ -129,7 +129,7 @@ |
||
| 129 | 129 | |
| 130 | 130 | $options = $this->getOptions(); |
| 131 | 131 | |
| 132 | - array_walk($options, function (&$value, $option) { |
|
| 132 | + array_walk($options, function(&$value, $option) { |
|
| 133 | 133 | $value = $option.'='.$value; |
| 134 | 134 | }); |
| 135 | 135 | |
@@ -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 | |
@@ -279,10 +279,10 @@ discard block |
||
| 279 | 279 | ->setAllowedValues('exclusion_policy', [ExclusionPolicy::NONE, ExclusionPolicy::ALL]) |
| 280 | 280 | ->setAllowedValues('order', $emptyValidator) |
| 281 | 281 | ->setAllowedValues('xml_root', $emptyValidator) |
| 282 | - ->setAllowedValues('properties', function ($properties) { |
|
| 282 | + ->setAllowedValues('properties', function($properties) { |
|
| 283 | 283 | return count($properties) > 0; |
| 284 | 284 | }) |
| 285 | - ->setNormalizer('order', function (Options $options, $order) use ($emptyValidator) { |
|
| 285 | + ->setNormalizer('order', function(Options $options, $order) use ($emptyValidator) { |
|
| 286 | 286 | if (is_string($order)) { |
| 287 | 287 | if (strcasecmp($order, 'ASC') === 0 || strcasecmp($order, 'DESC') === 0) { |
| 288 | 288 | return strtoupper($order); |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | |
| 307 | 307 | return $order; |
| 308 | 308 | }) |
| 309 | - ->setNormalizer('properties', function (Options $options, array $properties) { |
|
| 309 | + ->setNormalizer('properties', function(Options $options, array $properties) { |
|
| 310 | 310 | if ($this->propertyResolver === null) { |
| 311 | 311 | $this->configurePropertyOptions($this->propertyResolver = new OptionsResolver()); |
| 312 | 312 | } |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | ->setAllowedValues('until', $emptyValidator) |
| 389 | 389 | ->setAllowedValues('xml_entry', $emptyValidator) |
| 390 | 390 | ->setAllowedValues('xml_entry_attribute', $emptyValidator) |
| 391 | - ->setAllowedValues('groups', function (array $groups) use ($emptyValidator) { |
|
| 391 | + ->setAllowedValues('groups', function(array $groups) use ($emptyValidator) { |
|
| 392 | 392 | foreach ($groups as $group) { |
| 393 | 393 | if (!is_string($group) || !call_user_func($emptyValidator, $group)) { |
| 394 | 394 | return false; |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | |
| 398 | 398 | return true; |
| 399 | 399 | }) |
| 400 | - ->setAllowedValues('max_depth', function ($maxDepth) { |
|
| 400 | + ->setAllowedValues('max_depth', function($maxDepth) { |
|
| 401 | 401 | return $maxDepth >= 0; |
| 402 | 402 | }); |
| 403 | 403 | } |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | private function getEmptyValidator() |
| 409 | 409 | { |
| 410 | 410 | if ($this->emptyValidator === null) { |
| 411 | - $this->emptyValidator = function ($value) { |
|
| 411 | + $this->emptyValidator = function($value) { |
|
| 412 | 412 | return !empty($value); |
| 413 | 413 | }; |
| 414 | 414 | } |