@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | // process suppliers |
| 33 | 33 | if (isset($data['suppliers']) && is_array($data['suppliers'])) { |
| 34 | - $data['suppliers'] = \array_map(function ($supplier) { |
|
| 34 | + $data['suppliers'] = \array_map(function($supplier) { |
|
| 35 | 35 | $SupplierItem = new Supplier\SupplierItem($this->namespacesPaths, $this->sanitizeEncoding, $this->companyRegistrationNumber, $this->resolveOptions, $this->normalizerFactory); |
| 36 | 36 | return $SupplierItem->setDirectionalVariable($this->useOneDirectionalVariables)->setData($supplier['supplierItem']); |
| 37 | 37 | }, $data['suppliers']); |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | // process stockPriceItem |
| 31 | 31 | if (isset($data['stockPriceItem']) && is_array($data['stockPriceItem'])) { |
| 32 | - $data['stockPriceItem'] = \array_map(function ($stockPriceItem) { |
|
| 32 | + $data['stockPriceItem'] = \array_map(function($stockPriceItem) { |
|
| 33 | 33 | $price = new Price($this->namespacesPaths, $this->sanitizeEncoding, $this->companyRegistrationNumber, $this->resolveOptions, $this->normalizerFactory); |
| 34 | 34 | return $price->setDirectionalVariable($this->useOneDirectionalVariables)->setData($stockPriceItem['stockPrice']); |
| 35 | 35 | }, $data['stockPriceItem']); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | protected function createXML(): SimpleXMLElement |
| 120 | 120 | { |
| 121 | 121 | $np = $this->namespacesPaths->allNamespaces(); |
| 122 | - return new SimpleXMLElement('<?xml version="1.0" encoding="' . $this->sanitizeEncoding->getEncoding() . '"?><root ' . \implode(' ', \array_map(function ($k, $v) { |
|
| 122 | + return new SimpleXMLElement('<?xml version="1.0" encoding="' . $this->sanitizeEncoding->getEncoding() . '"?><root ' . \implode(' ', \array_map(function($k, $v) { |
|
| 123 | 123 | return 'xmlns:' . $k . '="' . $v . '"'; |
| 124 | 124 | }, \array_keys($np), \array_values($np))) . '></root>'); |
| 125 | 125 | } |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | return \htmlspecialchars( |
| 267 | 267 | \array_reduce( |
| 268 | 268 | $this->sanitizeEncoding->getListing()->getTransformers(), |
| 269 | - function (string $value, ValueTransformerInterface $transformer): string { |
|
| 269 | + function(string $value, ValueTransformerInterface $transformer): string { |
|
| 270 | 270 | return $transformer->transform($value); |
| 271 | 271 | }, |
| 272 | 272 | strval($value), |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | abstract class AbstractNormalizer |
| 9 | 9 | { |
| 10 | 10 | public function __construct( |
| 11 | - protected readonly int|null $length, |
|
| 11 | + protected readonly int | null $length, |
|
| 12 | 12 | protected readonly bool $nullable, |
| 13 | 13 | ) {} |
| 14 | 14 | |