Code Duplication    Length = 19-21 lines in 2 locations

app/Events/Commands/StoreEventCommand.php 1 location

@@ 45-63 (lines=19) @@
42
    protected $endDate;
43
    protected $deadline;
44
45
    public function __construct(
46
        $title,
47
        $description,
48
        $hostId,
49
        $url,
50
        EventImage $image,
51
        Carbon $startDate,
52
        Carbon $endDate,
53
        Carbon $deadline
54
    ) {
55
        $this->title = $title;
56
        $this->description = $description;
57
        $this->hostId = $hostId;
58
        $this->url = $url;
59
        $this->image = $image;
60
        $this->startDate = $startDate;
61
        $this->endDate = $endDate;
62
        $this->deadline = $deadline;
63
    }
64
65
    public function getTitle()
66
    {

app/Events/Commands/UpdateEventCommand.php 1 location

@@ 46-66 (lines=21) @@
43
    protected $endDate;
44
    protected $deadline;
45
46
    public function __construct(
47
        $id,
48
        $title,
49
        $description,
50
        $hostId,
51
        $url,
52
        EventImage $image,
53
        Carbon $startDate,
54
        Carbon $endDate,
55
        Carbon $deadline
56
    ) {
57
        $this->id = $id;
58
        $this->title = $title;
59
        $this->description = $description;
60
        $this->hostId = $hostId;
61
        $this->url = $url;
62
        $this->image = $image;
63
        $this->startDate = $startDate;
64
        $this->endDate = $endDate;
65
        $this->deadline = $deadline;
66
    }
67
68
    public function getId()
69
    {