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