@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | protected readonly Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber; |
| 84 | 84 | |
| 85 | 85 | public function __construct( |
| 86 | - string|Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber, |
|
| 86 | + string | Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber, |
|
| 87 | 87 | protected Pohoda\ValueTransformer\SanitizeEncoding $sanitizeEncoding = new Pohoda\ValueTransformer\SanitizeEncoding(new Pohoda\ValueTransformer\Listing()), |
| 88 | 88 | protected readonly Pohoda\Common\NamespacesPaths $namespacesPaths = new Pohoda\Common\NamespacesPaths(), |
| 89 | 89 | ) { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * |
| 198 | 198 | * @return int|string written bytes for file or XML string for memory |
| 199 | 199 | */ |
| 200 | - public function close(): int|string |
|
| 200 | + public function close(): int | string |
|
| 201 | 201 | { |
| 202 | 202 | $this->xmlWriter->endElement(); |
| 203 | 203 | |
@@ -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->normalizerFactory); |
| 34 | 34 | $price->setDirectionalVariable($this->useOneDirectionalVariables)->setResolveOptions($this->resolveOptions)->setData($stockPriceItem['stockPrice']); |
| 35 | 35 | return $price; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | |
| 39 | 39 | // process suppliers |
| 40 | 40 | if (isset($data['suppliers']) && is_array($data['suppliers'])) { |
| 41 | - $data['suppliers'] = \array_map(function ($supplier) { |
|
| 41 | + $data['suppliers'] = \array_map(function($supplier) { |
|
| 42 | 42 | $supplierItem = new Supplier\SupplierItem($this->namespacesPaths, $this->sanitizeEncoding, $this->normalizerFactory); |
| 43 | 43 | $supplierItem->setDirectionalVariable($this->useOneDirectionalVariables)->setResolveOptions($this->resolveOptions)->setData($supplier['supplierItem']); |
| 44 | 44 | return $supplierItem; |