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...
17
{
18
/**
19
* The path in the final json
20
* @example
21
* path /aa/bb
22
* will be transformed to
23
* {
24
* aa : {
25
* bb: <VALUE OF RESOLVE>
26
* }
27
* }
28
* @return mixed
29
*/
30
2
public function getPath()
31
{
32
2
return 'mails';
33
}
34
35
2
public function getDataFields()
36
{
37
return [
38
2
'from', 'to', 'subject', 'content'
39
2
];
40
}
41
42
/**
43
* Write data in the datasource and clean current buffer
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.