@@ -125,7 +125,7 @@ |
||
| 125 | 125 | ]; |
| 126 | 126 | break; |
| 127 | 127 | case 'SellersItemIdentification': |
| 128 | - $arrayOutput[$strName]['ID'] = $value->children('cbc', true)->ID->__toString(); |
|
| 128 | + $arrayOutput[$strName]['ID'] = $value->children('cbc', true)->ID->__toString(); |
|
| 129 | 129 | break; |
| 130 | 130 | } |
| 131 | 131 | } |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | 'DocumentNameSpaces' => $arrayDocument['DocumentNameSpaces'], |
| 60 | 60 | 'DocumentTagName' => $arrayDocument['DocumentTagName'], |
| 61 | 61 | ]); |
| 62 | - $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
| 62 | + $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
| 63 | 63 | return $arrayDocument; |
| 64 | 64 | } |
| 65 | 65 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | ->CreditNoteTypeCode->__toString(); |
| 93 | 93 | break; |
| 94 | 94 | case 'Invoice': |
| 95 | - $arrayOutput['InvoiceTypeCode'] = (integer) $objCommonBasicComponents |
|
| 95 | + $arrayOutput['InvoiceTypeCode'] = (integer) $objCommonBasicComponents |
|
| 96 | 96 | ->InvoiceTypeCode->__toString(); |
| 97 | 97 | break; |
| 98 | 98 | } |
@@ -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 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | public function writeElectronicInvoice(string $strFile, array $arrayDataIn, bool $bolComments, bool $bolSchemaLocation = false): void |
| 183 | 183 | { |
| 184 | - $this->objXmlWriter = new \XMLWriter(); |
|
| 184 | + $this->objXmlWriter = new \XMLWriter(); |
|
| 185 | 185 | $this->objXmlWriter->openURI($strFile); |
| 186 | 186 | $this->objXmlWriter->setIndent(true); |
| 187 | 187 | $this->objXmlWriter->setIndentString(str_repeat(' ', 4)); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | 'TaxTotal' => 'Single', |
| 211 | 211 | 'LegalMonetaryTotal' => 'Single', |
| 212 | 212 | ]; |
| 213 | - $arrayAggregates = $arrayData['Header']['CommonAggregateComponents-2']; |
|
| 213 | + $arrayAggregates = $arrayData['Header']['CommonAggregateComponents-2']; |
|
| 214 | 214 | foreach ($arrayOptionalElementsHeader as $key => $strLogicType) { |
| 215 | 215 | if (array_key_exists($key, $arrayDataIn) || array_key_exists($key, $arrayAggregates)) { |
| 216 | 216 | switch ($strLogicType) { |