Test Failed
Push — main ( f4d74f...6b9298 )
by Daniel
13:13 queued 10:00
created
source/ClassElectronicInvoiceUserInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.
source/ClassElectronicInvoiceRead.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
source/TraitUserInterfaceLogic.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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.