This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
10
{
11
const REG = 'C197';
12
const LEVEL = 4;
13
const PARENT = 'C190';
14
15
protected $parameters = [
16
'COD_AJ' => [
17
'type' => 'string',
18
'regex' => '^.{10}$',
19
'required' => true,
20
'info' => 'Código do ajustes/benefício/incentivo, conforme tabela indicada no item 5.3.',
21
'format' => ''
22
],
23
'DESCR_COMPL_AJ' => [
24
'type' => 'string',
25
'regex' => '^(.*)$',
26
'required' => false,
27
'info' => 'Descrição complementar do ajuste do documento fiscal',
28
'format' => ''
29
],
30
'COD_ITEM' => [
31
'type' => 'string',
32
'regex' => '^.{0,60}$',
33
'required' => false,
34
'info' => 'Código do item (campo 02 do Registro 0200)',
35
'format' => ''
36
],
37
'VL_BC_ICMS' => [
38
'type' => 'numeric',
39
'regex' => '^\d+(\.\d*)?|\.\d+$',
40
'required' => false,
41
'info' => 'Base de cálculo do ICMS ou do ICMS ST',
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.