Passed
Pull Request — master (#269)
by
unknown
02:07
created
src/Make.php 1 patch
Switch Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -3286,118 +3286,118 @@
 block discarded – undo
3286 3286
 
3287 3287
         $identificador = 'N01 <ICMSxx> - ';
3288 3288
         switch ($std->cst) {
3289
-        case '00':
3290
-            $icms = $this->dom->createElement("ICMS00");
3291
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 00");
3292
-            $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3293
-            $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3294
-            $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3295
-            break;
3296
-        case '20':
3297
-            $icms = $this->dom->createElement("ICMS20");
3298
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 20");
3299
-            $this->dom->addChild(
3300
-                $icms,
3301
-                'pRedBC',
3302
-                $std->pRedBC,
3303
-                true,
3304
-                "$identificador  Percentual da Redução de BC"
3305
-            );
3306
-            $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3307
-            $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3308
-            $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3309
-            break;
3310
-        case '40':
3311
-            $icms = $this->dom->createElement("ICMS45");
3312
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 40");
3313
-            break;
3314
-        case '41':
3315
-            $icms = $this->dom->createElement("ICMS45");
3316
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 41");
3317
-            break;
3318
-        case '51':
3319
-            $icms = $this->dom->createElement("ICMS45");
3320
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 51");
3321
-            break;
3322
-        case '60':
3323
-            $icms = $this->dom->createElement("ICMS60");
3324
-            $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 60");
3325
-            $this->dom->addChild(
3326
-                $icms,
3327
-                'vBCSTRet',
3328
-                $std->vBCSTRet,
3329
-                true,
3330
-                "$identificador  Valor BC do ICMS ST retido"
3331
-            );
3332
-            $this->dom->addChild(
3333
-                $icms,
3334
-                'vICMSSTRet',
3335
-                $std->vICMSSTRet,
3336
-                true,
3337
-                "$identificador  Valor do ICMS ST retido"
3338
-            );
3339
-            $this->dom->addChild(
3340
-                $icms,
3341
-                'pICMSSTRet',
3342
-                $std->pICMSSTRet,
3343
-                true,
3344
-                "$identificador  Valor do ICMS ST retido"
3345
-            );
3346
-            if ($std->vCred > 0) {
3347
-                $this->dom->addChild($icms, 'vCred', $std->vCred, false, "$identificador  Valor do Crédito");
3348
-            }
3349
-            break;
3350
-        case '90':
3351
-            if ($std->outraUF == true) {
3352
-                $icms = $this->dom->createElement("ICMSOutraUF");
3353
-                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 90");
3354
-                if ($std->vICMSOutraUF > 0) {
3355
-                    $this->dom->addChild(
3356
-                        $icms,
3357
-                        'pRedBCOutraUF',
3358
-                        $std->pRedBCOutraUF,
3359
-                        false,
3360
-                        "$identificador Percentual Red "
3361
-                        . "BC Outra UF"
3362
-                    );
3363
-                }
3364
-                $this->dom->addChild($icms, 'vBCOutraUF', $std->vBCOutraUF, true, "$identificador Valor BC ICMS Outra UF");
3289
+            case '00':
3290
+                $icms = $this->dom->createElement("ICMS00");
3291
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 00");
3292
+                $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3293
+                $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3294
+                $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3295
+                break;
3296
+            case '20':
3297
+                $icms = $this->dom->createElement("ICMS20");
3298
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 20");
3365 3299
                 $this->dom->addChild(
3366
-                    $icms, 'pICMSOutraUF', $std->pICMSOutraUF, true, "$identificador Alíquota do "
3367
-                    . "imposto Outra UF"
3300
+                    $icms,
3301
+                    'pRedBC',
3302
+                    $std->pRedBC,
3303
+                    true,
3304
+                    "$identificador  Percentual da Redução de BC"
3368 3305
                 );
3306
+                $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3307
+                $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3308
+                $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3309
+                break;
3310
+            case '40':
3311
+                $icms = $this->dom->createElement("ICMS45");
3312
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 40");
3313
+                break;
3314
+            case '41':
3315
+                $icms = $this->dom->createElement("ICMS45");
3316
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 41");
3317
+                break;
3318
+            case '51':
3319
+                $icms = $this->dom->createElement("ICMS45");
3320
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 51");
3321
+                break;
3322
+            case '60':
3323
+                $icms = $this->dom->createElement("ICMS60");
3324
+                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 60");
3369 3325
                 $this->dom->addChild(
3370 3326
                     $icms,
3371
-                    'vICMSOutraUF',
3372
-                    $std->vICMSOutraUF,
3327
+                    'vBCSTRet',
3328
+                    $std->vBCSTRet,
3373 3329
                     true,
3374
-                    "$identificador Valor ICMS Outra UF"
3330
+                    "$identificador  Valor BC do ICMS ST retido"
3375 3331
                 );
3376
-            } else {
3377
-                $icms = $this->dom->createElement("ICMS90");
3378
-                $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador Tributação do ICMS = 90");
3379
-                if ($std->pRedBC > 0) {
3332
+                $this->dom->addChild(
3333
+                    $icms,
3334
+                    'vICMSSTRet',
3335
+                    $std->vICMSSTRet,
3336
+                    true,
3337
+                    "$identificador  Valor do ICMS ST retido"
3338
+                );
3339
+                $this->dom->addChild(
3340
+                    $icms,
3341
+                    'pICMSSTRet',
3342
+                    $std->pICMSSTRet,
3343
+                    true,
3344
+                    "$identificador  Valor do ICMS ST retido"
3345
+                );
3346
+                if ($std->vCred > 0) {
3347
+                    $this->dom->addChild($icms, 'vCred', $std->vCred, false, "$identificador  Valor do Crédito");
3348
+                }
3349
+                break;
3350
+            case '90':
3351
+                if ($std->outraUF == true) {
3352
+                    $icms = $this->dom->createElement("ICMSOutraUF");
3353
+                    $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador  Tributação do ICMS = 90");
3354
+                    if ($std->vICMSOutraUF > 0) {
3355
+                        $this->dom->addChild(
3356
+                            $icms,
3357
+                            'pRedBCOutraUF',
3358
+                            $std->pRedBCOutraUF,
3359
+                            false,
3360
+                            "$identificador Percentual Red "
3361
+                            . "BC Outra UF"
3362
+                        );
3363
+                    }
3364
+                    $this->dom->addChild($icms, 'vBCOutraUF', $std->vBCOutraUF, true, "$identificador Valor BC ICMS Outra UF");
3365
+                    $this->dom->addChild(
3366
+                        $icms, 'pICMSOutraUF', $std->pICMSOutraUF, true, "$identificador Alíquota do "
3367
+                        . "imposto Outra UF"
3368
+                    );
3380 3369
                     $this->dom->addChild(
3381 3370
                         $icms,
3382
-                        'pRedBC',
3383
-                        $std->pRedBC,
3384
-                        false,
3385
-                        "$identificador Percentual Redução BC"
3371
+                        'vICMSOutraUF',
3372
+                        $std->vICMSOutraUF,
3373
+                        true,
3374
+                        "$identificador Valor ICMS Outra UF"
3386 3375
                     );
3376
+                } else {
3377
+                    $icms = $this->dom->createElement("ICMS90");
3378
+                    $this->dom->addChild($icms, 'CST', $std->cst, true, "$identificador Tributação do ICMS = 90");
3379
+                    if ($std->pRedBC > 0) {
3380
+                        $this->dom->addChild(
3381
+                            $icms,
3382
+                            'pRedBC',
3383
+                            $std->pRedBC,
3384
+                            false,
3385
+                            "$identificador Percentual Redução BC"
3386
+                        );
3387
+                    }
3388
+                    $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3389
+                    $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3390
+                    $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3391
+                    if ($std->vCred > 0) {
3392
+                        $this->dom->addChild($icms, 'vCred', $std->vCred, false, "$identificador  Valor do Crédido");
3393
+                    }
3387 3394
                 }
3388
-                $this->dom->addChild($icms, 'vBC', $std->vBC, true, "$identificador  Valor da BC do ICMS");
3389
-                $this->dom->addChild($icms, 'pICMS', $std->pICMS, true, "$identificador  Alíquota do imposto");
3390
-                $this->dom->addChild($icms, 'vICMS', $std->vICMS, true, "$identificador  Valor do ICMS");
3391
-                if ($std->vCred > 0) {
3392
-                    $this->dom->addChild($icms, 'vCred', $std->vCred, false, "$identificador  Valor do Crédido");
3393
-                }
3394
-            }
3395
-            break;
3396
-        case 'SN':
3397
-            $icms = $this->dom->createElement("ICMSSN");
3398
-            $this->dom->addChild($icms, 'CST', 90, true, "$identificador Tributação do ICMS = 90");
3399
-            $this->dom->addChild($icms, 'indSN', '1', true, "$identificador  Indica se contribuinte é SN");
3400
-            break;
3395
+                break;
3396
+            case 'SN':
3397
+                $icms = $this->dom->createElement("ICMSSN");
3398
+                $this->dom->addChild($icms, 'CST', 90, true, "$identificador Tributação do ICMS = 90");
3399
+                $this->dom->addChild($icms, 'indSN', '1', true, "$identificador  Indica se contribuinte é SN");
3400
+                break;
3401 3401
         }
3402 3402
         $this->imp = $this->dom->createElement('imp');
3403 3403
         $tagIcms = $this->dom->createElement('ICMS');
Please login to merge, or discard this patch.