Passed
Push — main ( 1ca57d...ce3687 )
by Daniel
03:20
created
source/ClassElectronicInvoiceRead.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
source/ClassElectronicInvoiceWrite.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     private function setDecisionElements(array $arrayInput, string $strKey, string $strTag, string $strCategory): void
23 23
     {
24
-        switch($strCategory) {
24
+        switch ($strCategory) {
25 25
             case 'ElementsOrdered':
26 26
                 $this->setElementsOrdered([
27 27
                     'commentParentKey' => $strKey,
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     private function setExtraElement(array $arrayInput, string $strType): void
87 87
     {
88 88
         if (in_array($arrayInput['tag'], ['AccountingCustomerParty', 'AccountingSupplierParty'])) {
89
-            switch($strType) {
89
+            switch ($strType) {
90 90
                 case 'End':
91 91
                     $this->objXmlWriter->endElement();
92 92
                     break;
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         foreach ($this->arrayProcessing['OptionalElementsHeader'] as $key => $strLogicType) {
147 147
             if (array_key_exists($key, $arrayData)) {
148
-                switch($strLogicType) {
148
+                switch ($strLogicType) {
149 149
                     case 'SingleCompany':
150 150
                         $this->setElementsOrdered([
151 151
                             'commentParentKey' => $key,
Please login to merge, or discard this patch.
source/TraitBackEndRomania.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     use \danielgp\io_operations\InputOutputCurl;
24 24
     use \danielgp\efactura\TraitBasic;
25 25
 
26
-    private array $arraystandardMesageFilters    = [
26
+    private array $arraystandardMesageFilters = [
27 27
         [
28 28
             'Code'   => 'E',
29 29
             'Detail' => 'raspuns cu erorile si semnatura MF, livrat in urma transmiterii unei facturi'
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     {
104 104
         $arrayErrorMessages = [];
105 105
         foreach ($arrayAssignedChecks as $strLabelCheck => $elementChecked) {
106
-            switch($strLabelCheck) {
106
+            switch ($strLabelCheck) {
107 107
                 case 'Empty Environment':
108 108
                     if ($elementChecked == '') {
109 109
                         $arrayErrorMessages[] = 'Environment is NOT allowed to be empty'
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
         $strContentBranch          = '';
210 210
         $arrayFinalParameterValues = [];
211 211
         $strFilter                 = '';
212
-        switch($strType) {
212
+        switch ($strType) {
213 213
             case 'ListAll':
214 214
                 $strContentBranch            = 'ListAllMessages';
215 215
                 $arrayFinalParameterValues[] = $arrayParameters['Days'];
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             $strRelevantUrl,
237 237
         ]));
238 238
         // sent XML content using CURL and capture feedback
239
-        $arrayFeedback  = $this->getContentFromUrlThroughCurl($strRelevantUrl, [
239
+        $arrayFeedback = $this->getContentFromUrlThroughCurl($strRelevantUrl, [
240 240
             'HttpHeader' => $this->buildHeaderAsArray(),
241 241
         ]);
242 242
         if ($arrayFeedback['errNo'] === 0) {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             'Empty Environment'              => $this->arraySolutionCustomSettings['StringElectronicInvoiceEnvironment'],
316 316
             'Non-Standard Environment Value' => $this->arraySolutionCustomSettings['StringElectronicInvoiceEnvironment'],
317 317
         ];
318
-        $arrayValidations          = $arrayUniversalValidations;
318
+        $arrayValidations = $arrayUniversalValidations;
319 319
         if ($arrayAdditionalValidations != []) {
320 320
             $arrayValidations = array_merge($arrayValidations, $arrayAdditionalValidations);
321 321
         }
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                 'Mandatory' => ['LoadingId'],
338 338
             ],
339 339
         };
340
-        $arrayAllowedCombined   = $arrayAllowedParameters['Mandatory'];
340
+        $arrayAllowedCombined = $arrayAllowedParameters['Mandatory'];
341 341
         if (array_key_exists('Optional', $arrayAllowedParameters)) {
342 342
             $arrayAllowedCombined = array_merge($arrayAllowedParameters['Mandatory'], $arrayAllowedParameters['Optional']);
343 343
         }
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         } else {
357 357
             // here we have to validate actual value passed as parameters
358 358
             foreach ($arrayParameters as $strParameterKey => $strParameterValue) {
359
-                switch($strParameterKey) {
359
+                switch ($strParameterKey) {
360 360
                     case 'Days':
361 361
                     case 'LoadingId':
362 362
                     case 'Page':
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
                             'LoadingId' => '1-' . strval(9 * pow(10, 10)),
366 366
                             'Page'      => '0-' . strval(9 * pow(10, 6)),
367 367
                         });
368
-                        $regs                    = null;
368
+                        $regs = null;
369 369
                         preg_match('/[0-9]{1,20}/', $strParameterValue, $regs, PREG_UNMATCHED_AS_NULL);
370 370
                         if (is_array($regs) && ($regs !== []) && ($regs[0] != $strParameterValue)) {
371 371
                             $arrayErrors[] = vsprintf('Parameter "%s" is expected to be of integer type'
@@ -442,10 +442,10 @@  discard block
 block discarded – undo
442 442
             'File base name end with',
443 443
             'File base name starts with',
444 444
         ];
445
-        $strLabel         = '';
445
+        $strLabel = '';
446 446
         foreach ($arrayKnownLabels as $strCurrentLabel) {
447 447
             $arrayPieces = explode('|', $this->arraySolutionCustomSettings['ArrayStrategyForUpload'][$strCurrentLabel]);
448
-            switch($arrayPieces[0]) {
448
+            switch ($arrayPieces[0]) {
449 449
                 case 'File base name end with':
450 450
                     if (str_ends_with($strFileName, $arrayPieces[1])) {
451 451
                         $strLabel = $strCurrentLabel;
Please login to merge, or discard this patch.
source/TraitTax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $arrayOut = [];
37 37
         foreach ($this->arrayProcessing[$strElementName] as $strElement => $strType) {
38
-            switch($strType) {
38
+            switch ($strType) {
39 39
                 case 'Elements':
40 40
                     if (isset($child3->children($this->arrayProcessing['mapping']['cac'], true)->$strElement)) {
41 41
                         $arrayOut[$strElement] = $this->getElements($child3->children($this
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $arrayOut = [];
59 59
         foreach ($this->arrayProcessing['TaxSubtotal'] as $strElementChild => $strTypeChild) {
60
-            switch($strTypeChild) {
60
+            switch ($strTypeChild) {
61 61
                 case 'Single':
62 62
                     if (isset($child->children($this->arrayProcessing['mapping']['cbc'], true)->$strElementChild)) {
63 63
                         $arrayOut[$strElementChild] = $this->getElementSingle($child
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         $arrayOut = [];
82 82
         foreach ($this->arrayProcessing['TaxTotal'] as $strElement => $strType) {
83
-            switch($strType) {
83
+            switch ($strType) {
84 84
                 case 'Single':
85 85
                     if (isset($child->children($this->arrayProcessing['mapping']['cbc'], true)->$strElement)) {
86 86
                         $arrayOut[$strElement] = $this->getElementSingle($child->children($this
Please login to merge, or discard this patch.