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 = 'D110';
12
const LEVEL = 3;
13
const PARENT = '';
14
15
protected $parameters = [
16
'NUM_ITEM' => [
17
'type' => 'numeric',
18
'regex' => '^[0-9]{3}$',
19
'required' => true,
20
'info' => 'Número sequencial do item no documento fiscal',
21
'format' => ''
22
],
23
'COD_ITEM' => [
24
'type' => 'string',
25
'regex' => '^[0-9]{60}$',
26
'required' => true,
27
'info' => 'Código do item (campo 02 do Registro 0200)',
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.