@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | private function getButtonForLocalisation(string $strLanguageCountry): string |
32 | 32 | { |
33 | - $arrayMapFlags = [ |
|
33 | + $arrayMapFlags = [ |
|
34 | 34 | 'ro_RO' => 'ro', |
35 | 35 | 'it_IT' => 'it', |
36 | 36 | 'en_US' => 'us', |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | ]) |
109 | 109 | ]; |
110 | 110 | } else { |
111 | - $arrayMapping = [ |
|
111 | + $arrayMapping = [ |
|
112 | 112 | 'Multiple' => [ |
113 | 113 | 'getMultipleElementsByKey' |
114 | 114 | , $arrayParams['data']->children('cac', true)->$key |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | 'data' => $objFile->children($strMap['cbc'], true), |
143 | 143 | 'namespace_cbc' => $arrayDocument['DocumentNameSpaces'][$strMap['cbc']], |
144 | 144 | ]); |
145 | - $arrayAggregates = $this->getHeader([ |
|
145 | + $arrayAggregates = $this->getHeader([ |
|
146 | 146 | 'CAC' => $objFile->children($strMap['cac'], true), |
147 | 147 | 'data' => $objFile, |
148 | 148 | ]); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->getBasicOrAggregateKey($arrayDocument['DocumentNameSpaces'], $strMap['cbc']) => $arrayBasics, |
151 | 151 | $this->getBasicOrAggregateKey($arrayDocument['DocumentNameSpaces'], $strMap['cac']) => $arrayAggregates, |
152 | 152 | ]; |
153 | - $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
153 | + $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
154 | 154 | return $arrayDocument; |
155 | 155 | } |
156 | 156 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | return $arrayStandardized; |
72 | 72 | } |
73 | 73 | |
74 | - private function handleResponseFile(\SplFileInfo|string $strFile): array |
|
74 | + private function handleResponseFile(\SplFileInfo | string $strFile): array |
|
75 | 75 | { |
76 | 76 | $arrayToReturn = []; |
77 | 77 | $strFileMime = mime_content_type($strFile->getRealPath()); |
@@ -244,9 +244,9 @@ discard block |
||
244 | 244 | $appR = new \danielgp\efactura\ClassElectronicInvoiceRead(); |
245 | 245 | $objFile = $appR->readElectronicXmlHeader($arrayData['strInvoiceContent']); |
246 | 246 | $documentHeaderTag = $appR->getDocumentRoot($objFile); |
247 | - switch($documentHeaderTag['DocumentTagName']) { |
|
247 | + switch ($documentHeaderTag['DocumentTagName']) { |
|
248 | 248 | case 'header': |
249 | - switch($documentHeaderTag['DocumentNameSpaces']['']) { |
|
249 | + switch ($documentHeaderTag['DocumentNameSpaces']['']) { |
|
250 | 250 | case 'mfp:anaf:dgti:efactura:mesajEroriFactuta:v1': |
251 | 251 | $arrayTemp = $this->setErrorsFromExtendedMarkupLaguage($arrayData, $strErrorTag); |
252 | 252 | $arrayToReturn = array_merge($arrayToReturn, $arrayTemp); |