@@ -154,7 +154,7 @@ |
||
| 154 | 154 | { |
| 155 | 155 | $namespace = empty($this->namespace) ? 'stk' : $this->namespace; |
| 156 | 156 | $xml = $this->createXML()->addChild( |
| 157 | - ($this->useOneDirectionalVariables ? $namespace : 'stk'). ':stock', |
|
| 157 | + ($this->useOneDirectionalVariables ? $namespace : 'stk') . ':stock', |
|
| 158 | 158 | '', |
| 159 | 159 | $this->namespace(($this->useOneDirectionalVariables ? $namespace : 'stk')), |
| 160 | 160 | ); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | protected readonly Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber; |
| 85 | 85 | |
| 86 | 86 | public function __construct( |
| 87 | - string|Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber, |
|
| 87 | + string | Pohoda\Common\CompanyRegistrationNumberInterface $companyRegistrationNumber, |
|
| 88 | 88 | ?Pohoda\DI\DependenciesFactory $dependenciesFactory = null, |
| 89 | 89 | ?Pohoda\ValueTransformer\SanitizeEncoding $sanitizeEncoding = new Pohoda\ValueTransformer\SanitizeEncoding(new Pohoda\ValueTransformer\Listing()), |
| 90 | 90 | ?Pohoda\Common\NamespacesPaths $namespacesPaths = new Pohoda\Common\NamespacesPaths(), |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | * |
| 211 | 211 | * @return int|string written bytes for file or XML string for memory |
| 212 | 212 | */ |
| 213 | - public function close(): int|string |
|
| 213 | + public function close(): int | string |
|
| 214 | 214 | { |
| 215 | 215 | $this->xmlWriter->endElement(); |
| 216 | 216 | |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | class OfferDto extends Document\AbstractDocumentDto |
| 8 | 8 | { |
| 9 | - public Header|HeaderDto|null $header = null; |
|
| 9 | + public Header | HeaderDto | null $header = null; |
|
| 10 | 10 | /** @var array<Item|ItemDto> */ |
| 11 | 11 | public array $details = []; |
| 12 | - public Summary|SummaryDto|null $summary = null; |
|
| 12 | + public Summary | SummaryDto | null $summary = null; |
|
| 13 | 13 | } |
@@ -13,20 +13,20 @@ discard block |
||
| 13 | 13 | #[Attributes\RefElement] |
| 14 | 14 | public ?string $number = null; |
| 15 | 15 | #[Attributes\Options\DateOption] |
| 16 | - public \DateTimeInterface|string|null $date = null; |
|
| 16 | + public \DateTimeInterface | string | null $date = null; |
|
| 17 | 17 | #[Attributes\Options\DateOption] |
| 18 | - public \DateTimeInterface|string|null $validTill = null; |
|
| 18 | + public \DateTimeInterface | string | null $validTill = null; |
|
| 19 | 19 | #[Attributes\Options\StringOption(240)] |
| 20 | 20 | public ?string $text = null; |
| 21 | - public Type\Dtos\AddressDto|Type\Address|null $partnerIdentity = null; |
|
| 22 | - public Type\Dtos\MyAddressDto|Type\MyAddress|null $myIdentity = null; |
|
| 21 | + public Type\Dtos\AddressDto | Type\Address | null $partnerIdentity = null; |
|
| 22 | + public Type\Dtos\MyAddressDto | Type\MyAddress | null $myIdentity = null; |
|
| 23 | 23 | #[Attributes\RefElement] |
| 24 | 24 | public ?string $priceLevel = null; |
| 25 | 25 | #[Attributes\RefElement] |
| 26 | 26 | public ?string $centre = null; |
| 27 | 27 | /** @var array<string, string|int|float|bool|array<string, string|int|float|bool>>|string|null */ |
| 28 | 28 | #[Attributes\RefElement] |
| 29 | - public array|string|null $activity = null; |
|
| 29 | + public array | string | null $activity = null; |
|
| 30 | 30 | #[Attributes\RefElement] |
| 31 | 31 | public ?string $contract = null; |
| 32 | 32 | #[Attributes\RefElement] |
@@ -37,12 +37,12 @@ discard block |
||
| 37 | 37 | public ?string $evidentiaryResourcesMOSS = null; |
| 38 | 38 | public ?string $accountingPeriodMOSS = null; |
| 39 | 39 | #[Attributes\Options\BooleanOption] |
| 40 | - public bool|string|null $isExecuted = null; |
|
| 40 | + public bool | string | null $isExecuted = null; |
|
| 41 | 41 | public ?string $details = null; |
| 42 | 42 | public ?string $note = null; |
| 43 | 43 | public ?string $intNote = null; |
| 44 | 44 | #[Attributes\Options\BooleanOption] |
| 45 | - public bool|string|null $markRecord = null; |
|
| 45 | + public bool | string | null $markRecord = null; |
|
| 46 | 46 | /** @var array<Type\Parameter|Type\Dtos\ParameterDto> */ |
| 47 | 47 | public array $parameters = []; |
| 48 | 48 | } |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | class PrintRequestDto extends Dtos\AbstractDto |
| 9 | 9 | { |
| 10 | 10 | #[Attributes\Options\RequiredOption] |
| 11 | - public Record|RecordDto|null $record = null; |
|
| 11 | + public Record | RecordDto | null $record = null; |
|
| 12 | 12 | #[Attributes\Options\RequiredOption] |
| 13 | - public PrinterSettings|PrinterSettingsDto|null $printerSettings = null; |
|
| 13 | + public PrinterSettings | PrinterSettingsDto | null $printerSettings = null; |
|
| 14 | 14 | } |
@@ -8,5 +8,5 @@ |
||
| 8 | 8 | class ReportDto extends AbstractDto |
| 9 | 9 | { |
| 10 | 10 | #[Attributes\Options\IntegerOption] |
| 11 | - public int|string|null $id = null; |
|
| 11 | + public int | string | null $id = null; |
|
| 12 | 12 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | $reflect = new \ReflectionClass($this); |
| 21 | 21 | $classname = $reflect->getShortName(); |
| 22 | - $xml = $this->createXML()->addChild('prn:'.lcfirst($classname), '', $this->namespace('prn')); |
|
| 22 | + $xml = $this->createXML()->addChild('prn:' . lcfirst($classname), '', $this->namespace('prn')); |
|
| 23 | 23 | |
| 24 | 24 | $this->addElements($xml, $this->getDataElements(), 'prn'); |
| 25 | 25 | |
@@ -8,5 +8,5 @@ |
||
| 8 | 8 | class FilterDto extends AbstractDto |
| 9 | 9 | { |
| 10 | 10 | #[Attributes\Options\IntegerOption] |
| 11 | - public int|string|null $id = null; |
|
| 11 | + public int | string | null $id = null; |
|
| 12 | 12 | } |
@@ -6,8 +6,8 @@ |
||
| 6 | 6 | |
| 7 | 7 | class PrinterSettingsDto extends Dtos\AbstractDto |
| 8 | 8 | { |
| 9 | - public Report|ReportDto|null $report = null; |
|
| 9 | + public Report | ReportDto | null $report = null; |
|
| 10 | 10 | public ?string $printer = null; |
| 11 | - public Pdf|PdfDto|null $pdf = null; |
|
| 12 | - public Parameters|ParametersDto|null $parameters = null; |
|
| 11 | + public Pdf | PdfDto | null $pdf = null; |
|
| 12 | + public Parameters | ParametersDto | null $parameters = null; |
|
| 13 | 13 | } |