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...
15
{
16
/**
17
* The issue title.
18
*
19
* @var string
20
*/
21
public $title;
22
23
/**
24
* The issue description.
25
*
26
* @var string
27
*/
28
public $description;
29
30
/**
31
* The issue user.
32
*
33
* @var int
34
*/
35
public $author_id;
36
37
/**
38
* The issue project.
39
*
40
* @var int
41
*/
42
public $project_id;
43
44
/**
45
* The validation rules.
46
*
47
* @var string[]
48
*/
49
public $rules = [
50
'title' => 'required|string',
51
'description' => 'string',
52
'author_id' => 'int',
53
'project_id' => 'int',
54
];
55
56
/**
57
* Create a new add issue command instance.
58
*
59
* @param string $title
60
* @param string $description
61
* @param int $author_id
62
* @param int $project_id
63
*/
64
public function __construct($title, $description, $author_id, $project_id)
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.