@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return $strToReturn; |
86 | 86 | } |
87 | 87 | |
88 | - private function getOneOrMultipleTags(string|array $inElement, array $arrayIn): array |
|
88 | + private function getOneOrMultipleTags(string | array $inElement, array $arrayIn): array |
|
89 | 89 | { |
90 | 90 | $arrayToReturn = []; |
91 | 91 | if (is_array($inElement)) { |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | 'BT' => 'Field', |
106 | 106 | 'UBL21' => 'Spec', |
107 | 107 | ]; |
108 | - $strIdType = 'unknown'; |
|
108 | + $strIdType = 'unknown'; |
|
109 | 109 | if (in_array($strKeyPrefix, array_keys($arrayMapping))) { |
110 | 110 | $strIdType = $arrayMapping[$strKeyPrefix]; |
111 | 111 | } |
@@ -166,7 +166,7 @@ |
||
166 | 166 | return $strCommentParentKey; |
167 | 167 | } |
168 | 168 | |
169 | - protected function setNumericValue(string $strTag, array $arrayDataIn): string|float |
|
169 | + protected function setNumericValue(string $strTag, array $arrayDataIn): string | float |
|
170 | 170 | { |
171 | 171 | $sReturn = $arrayDataIn['value']; |
172 | 172 | $arrayRawTags = ['CreditedQuantity', 'EndpointID', 'InvoicedQuantity', 'ItemClassificationCode', 'PriceAmount']; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | return $this->getJsonFromFile('json/ElectronicInvoiceComments.json'); |
39 | 39 | } |
40 | 40 | |
41 | - private function getElements(\SimpleXMLElement|null $arrayIn): array |
|
41 | + private function getElements(\SimpleXMLElement | null $arrayIn): array |
|
42 | 42 | { |
43 | 43 | $arrayToReturn = []; |
44 | 44 | if (!is_null($arrayIn)) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | return $arrayToReturn; |
57 | 57 | } |
58 | 58 | |
59 | - private function getElementSingle(\SimpleXMLElement|null $value) |
|
59 | + private function getElementSingle(\SimpleXMLElement | null $value) |
|
60 | 60 | { |
61 | 61 | $arrayToReturn = []; |
62 | 62 | if (!is_null($value)) { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | return $arrayOutput; |
114 | 114 | } |
115 | 115 | |
116 | - private function getMultipleElementsStandard(array|\SimpleXMLElement $arrayIn): array |
|
116 | + private function getMultipleElementsStandard(array | \SimpleXMLElement $arrayIn): array |
|
117 | 117 | { |
118 | 118 | $arrayToReturn = []; |
119 | 119 | $intLineNo = 0; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | private function getHeader(array $arrayParams): array |
90 | 90 | { |
91 | - $arrayDocument = $this->getElementsOrdered([ |
|
91 | + $arrayDocument = $this->getElementsOrdered([ |
|
92 | 92 | 'data' => $arrayParams['CBC'], |
93 | 93 | 'namespace_cbc' => $arrayParams['DocumentNameSpaces']['cbc'], |
94 | 94 | ]); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | 'DocumentNameSpaces' => $arrayDocument['DocumentNameSpaces'], |
144 | 144 | 'DocumentTagName' => $arrayDocument['DocumentTagName'], |
145 | 145 | ]); |
146 | - $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
146 | + $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
147 | 147 | return $arrayDocument; |
148 | 148 | } |
149 | 149 | } |