@@ -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 | |
@@ -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); |