@@ -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', |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | $arrayToReturn = []; |
121 | 121 | $strFileMime = mime_content_type($strFile->getRealPath()); |
122 | - switch($strFileMime) { |
|
122 | + switch ($strFileMime) { |
|
123 | 123 | case 'application/json': |
124 | 124 | $arrayError = $this->getArrayFromJsonFile($strFile->getPath(), $strFile->getFilename()); |
125 | 125 | $arrayToReturn = $this->setStandardizedFeedbackArray([ |
@@ -256,9 +256,9 @@ discard block |
||
256 | 256 | $appR = new \danielgp\efactura\ClassElectronicInvoiceRead(); |
257 | 257 | $objFile = $appR->readElectronicXmlHeader($arrayData['strInvoiceContent']); |
258 | 258 | $documentHeaderTag = $appR->getDocumentRoot($objFile); |
259 | - switch($documentHeaderTag['DocumentTagName']) { |
|
259 | + switch ($documentHeaderTag['DocumentTagName']) { |
|
260 | 260 | case 'header': |
261 | - switch($documentHeaderTag['DocumentNameSpaces']['']) { |
|
261 | + switch ($documentHeaderTag['DocumentNameSpaces']['']) { |
|
262 | 262 | case 'mfp:anaf:dgti:efactura:mesajEroriFactuta:v1': |
263 | 263 | $arrayTemp = $this->setErrorsFromExtendedMarkupLaguage($arrayData, $strErrorTag); |
264 | 264 | $arrayToReturn = array_merge($arrayToReturn, $arrayTemp); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | return $arrayDocument; |
102 | 102 | } |
103 | 103 | |
104 | - private function getHeaderComponents(array $arrayParams, string $key, string $value): array|string |
|
104 | + private function getHeaderComponents(array $arrayParams, string $key, string $value): array | string |
|
105 | 105 | { |
106 | 106 | $arrayDocument = []; |
107 | 107 | if ($value === 'SingleCompany') { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | ]) |
114 | 114 | ]; |
115 | 115 | } else { |
116 | - $arrayMapping = [ |
|
116 | + $arrayMapping = [ |
|
117 | 117 | 'Multiple' => [ |
118 | 118 | 'getMultipleElementsByKey' |
119 | 119 | , $arrayParams['data']->children('cac', true)->$key |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | 'data' => $objFile->children($strMap['cbc'], true), |
159 | 159 | 'namespace_cbc' => $arrayDocument['DocumentNameSpaces'][$strMap['cbc']], |
160 | 160 | ]); |
161 | - $arrayAggregates = $this->getHeader([ |
|
161 | + $arrayAggregates = $this->getHeader([ |
|
162 | 162 | 'CAC' => $objFile->children($strMap['cac'], true), |
163 | 163 | 'data' => $objFile, |
164 | 164 | ]); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $this->getBasicOrAggregateKey($arrayDocument['DocumentNameSpaces'], $strMap['cbc']) => $arrayBasics, |
167 | 167 | $this->getBasicOrAggregateKey($arrayDocument['DocumentNameSpaces'], $strMap['cac']) => $arrayAggregates, |
168 | 168 | ]; |
169 | - $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
169 | + $arrayDocument['Lines'] = $this->getDocumentLines($objFile, $arrayDocument['DocumentTagName']); |
|
170 | 170 | return $arrayDocument; |
171 | 171 | } |
172 | 172 |