Passed
Push — master ( cfaaf4...73feaf )
by Petr
03:06
created
src/Pohoda/Stock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Pohoda.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Pohoda/Offer/SummaryDto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
     public ?string $roundingDocument = null;
13 13
     #[Attributes\Options\ListOption(['none', 'noneEveryRate', 'up2tenthEveryItem', 'up2tenthEveryRate', 'math2tenthEveryItem', 'math2tenthEveryRate', 'math2halfEveryItem', 'math2halfEveryRate', 'math2intEveryItem', 'math2intEveryRate'])]
14 14
     public ?string $roundingVAT = null;
15
-    public Type\Dtos\CurrencyHomeDto|Type\CurrencyHome|null $homeCurrency = null;
16
-    public Type\Dtos\CurrencyForeignDto|Type\CurrencyForeign|null $foreignCurrency = null;
15
+    public Type\Dtos\CurrencyHomeDto | Type\CurrencyHome | null $homeCurrency = null;
16
+    public Type\Dtos\CurrencyForeignDto | Type\CurrencyForeign | null $foreignCurrency = null;
17 17
 }
Please login to merge, or discard this patch.
src/Pohoda/Offer/OfferDto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Pohoda/Offer/ItemDto.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,28 +11,28 @@  discard block
 block discarded – undo
11 11
     #[Attributes\Options\StringOption(90)]
12 12
     public ?string $text = null;
13 13
     #[Attributes\Options\FloatOption]
14
-    public float|string|null $quantity = null;
14
+    public float | string | null $quantity = null;
15 15
     #[Attributes\Options\StringOption(10)]
16 16
     public ?string $unit = null;
17 17
     #[Attributes\Options\FloatOption]
18
-    public float|string|null $coefficient = null;
18
+    public float | string | null $coefficient = null;
19 19
     #[Attributes\Options\BooleanOption]
20
-    public bool|string|null $payVAT = null;
20
+    public bool | string | null $payVAT = null;
21 21
     #[Attributes\Options\ListOption(['none', 'high', 'low', 'third', 'historyHigh', 'historyLow', 'historyThird'])]
22 22
     public ?string $rateVAT = null;
23 23
     #[Attributes\Options\FloatOption]
24
-    public float|string|null $percentVAT = null;
24
+    public float | string | null $percentVAT = null;
25 25
     #[Attributes\Options\FloatOption]
26
-    public float|string|null $discountPercentage = null;
27
-    public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $homeCurrency = null;
28
-    public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $foreignCurrency = null;
26
+    public float | string | null $discountPercentage = null;
27
+    public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $homeCurrency = null;
28
+    public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $foreignCurrency = null;
29 29
     #[Attributes\RefElement]
30 30
     public ?string $typeServiceMOSS = null;
31 31
     #[Attributes\Options\StringOption(90)]
32 32
     public ?string $note = null;
33 33
     #[Attributes\Options\StringOption(64)]
34 34
     public ?string $code = null;
35
-    public Type\Dtos\StockItemDto|Type\StockItem|null $stockItem = null;
35
+    public Type\Dtos\StockItemDto | Type\StockItem | null $stockItem = null;
36 36
     #[Attributes\RefElement]
37 37
     public ?string $centre = null;
38 38
     #[Attributes\RefElement]
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     #[Attributes\RefElement]
41 41
     public ?string $contract = null;
42 42
     #[Attributes\Options\BooleanOption]
43
-    public bool|string|null $PDP = null;
43
+    public bool | string | null $PDP = null;
44 44
     /** @var array<Type\Parameter|Type\Dtos\ParameterDto> */
45 45
     public array $parameters = [];
46 46
 }
Please login to merge, or discard this patch.
src/Pohoda/Offer/HeaderDto.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Pohoda/ListResponse/ListResponseDto.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,19 +23,19 @@
 block discarded – undo
23 23
     #[Attributes\Options\DefaultOption(['\kalanis\Pohoda\ListResponse\ListResponseDto', 'normalizeInvoiceType']), Attributes\Options\ListOption([null, 'issuedInvoice', 'issuedCreditNotice', 'issuedDebitNote', 'issuedAdvanceInvoice', 'receivable', 'issuedProformaInvoice', 'penalty', 'issuedCorrectiveTax', 'receivedInvoice', 'receivedCreditNotice', 'receivedDebitNote', 'receivedAdvanceInvoice', 'commitment', 'receivedProformaInvoice', 'receivedCorrectiveTax'])]
24 24
     public ?string $invoiceType = null;
25 25
     #[Attributes\JustAttribute]
26
-    public ListRequest\Limit|ListRequest\LimitDto|null $limit = null;
26
+    public ListRequest\Limit | ListRequest\LimitDto | null $limit = null;
27 27
     #[Attributes\JustAttribute]
28
-    public ListRequest\Filter|ListRequest\FilterDto|null $filter = null;
28
+    public ListRequest\Filter | ListRequest\FilterDto | null $filter = null;
29 29
     #[Attributes\JustAttribute]
30
-    public ListRequest\RestrictionData|ListRequest\RestrictionDataDto|null $restrictionData = null;
30
+    public ListRequest\RestrictionData | ListRequest\RestrictionDataDto | null $restrictionData = null;
31 31
     #[Attributes\JustAttribute]
32
-    public ListRequest\UserFilterName|ListRequest\UserFilterNameDto|null $userFilterName = null;
32
+    public ListRequest\UserFilterName | ListRequest\UserFilterNameDto | null $userFilterName = null;
33 33
     /** @var array<Order> */
34 34
     public array $order = [];
35 35
     /** @var array<Stock> */
36 36
     public array $stock = [];
37
-    public \DateTimeInterface|string|null $timestamp = null;
38
-    public \DateTimeInterface|string|null $validFrom = null;
37
+    public \DateTimeInterface | string | null $timestamp = null;
38
+    public \DateTimeInterface | string | null $validFrom = null;
39 39
 
40 40
     public static function normalizeNamespace(Options $options): string
41 41
     {
Please login to merge, or discard this patch.
src/Pohoda/PrintRequest/PrintRequestDto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Pohoda/PrintRequest/ReportDto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,5 +8,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.