Passed
Pull Request — master (#269)
by
unknown
02:07
created
src/Make.php 2 patches
Doc Comments   +13 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1291,8 +1291,6 @@  discard block
 block discarded – undo
1291 1291
      * #35
1292 1292
      * Nível: 2
1293 1293
      *
1294
-     * @param  string   $toma Tomador do
1295
-     *                        Serviço
1296 1294
      * @param  stdClass $std
1297 1295
      * @return \DOMElement
1298 1296
      */
@@ -2131,6 +2129,7 @@  discard block
 block discarded – undo
2131 2129
      * Os parâmetros para esta função são todos os elementos da tag "ObsCont" do
2132 2130
      * tipo elemento (Ele = E|CE|A) e nível 3
2133 2131
      *
2132
+     * @param stdClass $std
2134 2133
      * @return boolean
2135 2134
      */
2136 2135
     public function tagobsCont($std)
@@ -2172,6 +2171,7 @@  discard block
 block discarded – undo
2172 2171
      * Os parâmetros para esta função são todos os elementos da tag "ObsFisco" do tipo
2173 2172
      * elemento (Ele = E|CE|A) e nível 3
2174 2173
      *
2174
+     * @param stdClass $std
2175 2175
      * @return boolean
2176 2176
      */
2177 2177
     public function tagobsFisco($std)
@@ -2213,6 +2213,7 @@  discard block
 block discarded – undo
2213 2213
      * Os parâmetros para esta função são todos os elementos da tag "emit" do
2214 2214
      * tipo elemento (Ele = E|CE|A) e nível 2
2215 2215
      *
2216
+     * @param stdClass $std
2216 2217
      * @return \DOMElement
2217 2218
      */
2218 2219
     public function tagemit($std)
@@ -2275,6 +2276,7 @@  discard block
 block discarded – undo
2275 2276
      * Os parâmetros para esta função são todos os elementos da tag "enderEmit" do
2276 2277
      * tipo elemento (Ele = E|CE|A) e nível 3
2277 2278
      *
2279
+     * @param stdClass $std
2278 2280
      * @return \DOMElement
2279 2281
      */
2280 2282
     public function tagenderEmit($std)
@@ -2971,6 +2973,7 @@  discard block
 block discarded – undo
2971 2973
      * Os parâmetros para esta função são todos os elementos da tag "dest" do
2972 2974
      * tipo elemento (Ele = E|CE|A) e nível 2
2973 2975
      *
2976
+     * @param stdClass $std
2974 2977
      * @return \DOMElement
2975 2978
      */
2976 2979
     public function tagdest($std)
@@ -3073,6 +3076,7 @@  discard block
 block discarded – undo
3073 3076
      * Os parâmetros para esta função são todos os elementos da tag "enderDest" do
3074 3077
      * tipo elemento (Ele = E|CE|A) e nível 3
3075 3078
      *
3079
+     * @param stdClass $std
3076 3080
      * @return \DOMElement
3077 3081
      */
3078 3082
     public function tagenderDest($std)
@@ -3252,6 +3256,7 @@  discard block
 block discarded – undo
3252 3256
      * Informações relativas ao ICMS
3253 3257
      * #194
3254 3258
      *
3259
+     * @param stdClass $std
3255 3260
      * @return DOMElement
3256 3261
      */
3257 3262
     public function tagicms($std)
@@ -3912,6 +3917,7 @@  discard block
 block discarded – undo
3912 3917
      * #297
3913 3918
      * Nível: 3
3914 3919
      *
3920
+     * @param stdClass $std
3915 3921
      * @return mixed
3916 3922
      */
3917 3923
     public function taginfNFe($std)
@@ -4434,7 +4440,6 @@  discard block
 block discarded – undo
4434 4440
      * #366
4435 4441
      * Nível: 2
4436 4442
      *
4437
-     * @param  string $versaoModal
4438 4443
      * @return DOMElement|\DOMNode
4439 4444
      */
4440 4445
     public function taginfModal($std)
@@ -5008,7 +5013,6 @@  discard block
 block discarded – undo
5008 5013
     /**
5009 5014
      * CT-e de substituição - tomaICMS
5010 5015
      *
5011
-     * @param  type $std
5012 5016
      * @return type
5013 5017
      */
5014 5018
     public function tagtomaICMS()
@@ -5020,7 +5024,7 @@  discard block
 block discarded – undo
5020 5024
     /**
5021 5025
      * CT-e de substituição - NF-e
5022 5026
      *
5023
-     * @param  type $std
5027
+     * @param  stdClass $std
5024 5028
      * @return type
5025 5029
      */
5026 5030
     public function tagrefNFe($std)
@@ -5050,7 +5054,7 @@  discard block
 block discarded – undo
5050 5054
     /**
5051 5055
      * CT-e de substituição - NF
5052 5056
      *
5053
-     * @param  type $std
5057
+     * @param  stdClass $std
5054 5058
      * @return type
5055 5059
      */
5056 5060
     public function tagrefNF($std)
@@ -5140,7 +5144,7 @@  discard block
 block discarded – undo
5140 5144
     /**
5141 5145
      * CT-e de substituição - CT-e
5142 5146
      *
5143
-     * @param  type $std
5147
+     * @param  stdClass $std
5144 5148
      * @return type
5145 5149
      */
5146 5150
     public function tagrefCTe($std)
@@ -5455,6 +5459,7 @@  discard block
 block discarded – undo
5455 5459
      * Nível: 1
5456 5460
      * Os parâmetros para esta função são todos os elementos da tag "autXML"
5457 5461
      *
5462
+     * @param stdClass $std
5458 5463
      * @return boolean
5459 5464
      */
5460 5465
     public function tagautXML($std)
@@ -5731,7 +5736,7 @@  discard block
 block discarded – undo
5731 5736
      * Replace all unsuported chars
5732 5737
      *
5733 5738
      * @param  stdClass $std
5734
-     * @param  array    $possible
5739
+     * @param  string[]    $possible
5735 5740
      * @return stdClass
5736 5741
      */
5737 5742
     private function equilizeParameters(stdClass $std, $possible)
Please login to merge, or discard this 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.