@@ -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 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | break; |
| 59 | 59 | case 'Multiple': |
| 60 | 60 | //$arrayOutput[$strElement] = $this->getMultipleElements($child->children('cac', true)->$strElement); |
| 61 | - $intLineNo = 0; |
|
| 61 | + $intLineNo = 0; |
|
| 62 | 62 | foreach ($child->children('cac', true)->$strElement as $value2) { |
| 63 | 63 | $intLineNo++; |
| 64 | 64 | $intLineStr = $this->getLineStringFromNumber($intLineNo); |
@@ -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)) { |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | return ($intLineNo < 10 ? '0' : '') . $intLineNo; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - private function getMultipleElementsStandard(array|\SimpleXMLElement $arrayIn): array |
|
| 104 | + private function getMultipleElementsStandard(array | \SimpleXMLElement $arrayIn): array |
|
| 105 | 105 | { |
| 106 | 106 | $arrayToReturn = []; |
| 107 | 107 | $intLineNo = 0; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | private function getHeader(array $arrayParams): array |
| 96 | 96 | { |
| 97 | - $arrayDocument = $this->getElementsOrdered([ |
|
| 97 | + $arrayDocument = $this->getElementsOrdered([ |
|
| 98 | 98 | 'data' => $arrayParams['CBC'], |
| 99 | 99 | 'namespace_cbc' => $arrayParams['DocumentNameSpaces']['cbc'], |
| 100 | 100 | ]); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | return $arrayDocument; |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | - private function getMultiplePaymentMeansElements(array|\SimpleXMLElement $arrayIn): array |
|
| 137 | + private function getMultiplePaymentMeansElements(array | \SimpleXMLElement $arrayIn): array |
|
| 138 | 138 | { |
| 139 | 139 | $arrayToReturn = []; |
| 140 | 140 | $intLineNo = 0; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | 'DocumentNameSpaces' => $arrayDocument['DocumentNameSpaces'], |
| 161 | 161 | 'DocumentTagName' => $arrayDocument['DocumentTagName'], |
| 162 | 162 | ]); |
| 163 | - $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
| 163 | + $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
| 164 | 164 | return $arrayDocument; |
| 165 | 165 | } |
| 166 | 166 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | 'Lines_AllowanceCharge' => 'ArrayElementsOrdered', |
| 60 | 60 | 'Delivery_DeliveryLocation_ID' => 'SingleElementWithAttribute', |
| 61 | 61 | ]; |
| 62 | - $arrayTagMapping = [ |
|
| 62 | + $arrayTagMapping = [ |
|
| 63 | 63 | 'EmbeddedDocumentBinaryObject' => 'SingleElementWithAttribute', |
| 64 | 64 | 'EndpointID' => 'SingleElementWithAttribute', |
| 65 | 65 | 'AdditionalItemProperty' => 'MultipleElementsOrdered', |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | } |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | - protected function setNumericValue(string $strTag, array $arrayDataIn): string|float |
|
| 236 | + protected function setNumericValue(string $strTag, array $arrayDataIn): string | float |
|
| 237 | 237 | { |
| 238 | 238 | $sReturn = $arrayDataIn['value']; |
| 239 | 239 | $arrayRawTags = ['CreditedQuantity', 'EndpointID', 'InvoicedQuantity', 'ItemClassificationCode', 'PriceAmount']; |