|
@@ -126,11 +126,11 @@ discard block |
|
|
block discarded – undo |
|
126
|
126
|
return $strValueToReturn; |
|
127
|
127
|
} |
|
128
|
128
|
|
|
129
|
|
- private function handleResponseFile(\SplFileInfo|string $strFile): array |
|
|
129
|
+ private function handleResponseFile(\SplFileInfo | string $strFile): array |
|
130
|
130
|
{ |
|
131
|
131
|
$arrayToReturn = []; |
|
132
|
132
|
$strFileMime = mime_content_type($strFile->getRealPath()); |
|
133
|
|
- switch($strFileMime) { |
|
|
133
|
+ switch ($strFileMime) { |
|
134
|
134
|
case 'application/json': |
|
135
|
135
|
$arrayError = $this->getArrayFromJsonFile($strFile->getPath(), $strFile->getFilename()); |
|
136
|
136
|
$arrayToReturn = $this->setStandardizedFeedbackArray([ |
|
@@ -267,9 +267,9 @@ discard block |
|
|
block discarded – undo |
|
267
|
267
|
$appR = new \danielgp\efactura\ClassElectronicInvoiceRead(); |
|
268
|
268
|
$objFile = $appR->readElectronicXmlHeader($arrayData['strInvoiceContent']); |
|
269
|
269
|
$documentHeaderTag = $appR->getDocumentRoot($objFile); |
|
270
|
|
- switch($documentHeaderTag['DocumentTagName']) { |
|
|
270
|
+ switch ($documentHeaderTag['DocumentTagName']) { |
|
271
|
271
|
case 'header': |
|
272
|
|
- switch($documentHeaderTag['DocumentNameSpaces']['']) { |
|
|
272
|
+ switch ($documentHeaderTag['DocumentNameSpaces']['']) { |
|
273
|
273
|
case 'mfp:anaf:dgti:efactura:mesajEroriFactuta:v1': |
|
274
|
274
|
$arrayTemp = $this->setErrorsFromExtendedMarkupLaguage($arrayData, $strErrorTag); |
|
275
|
275
|
$arrayToReturn = array_merge($arrayToReturn, $arrayTemp); |
Please login to merge, or discard this patch.