Code Duplication    Length = 26-26 lines in 2 locations

src/Events/TicketCloseEvent.php 1 location

@@ 23-48 (lines=26) @@
20
 *
21
 * @package RexlManu\LaravelTickets\Events
22
 */
23
class TicketCloseEvent
24
{
25
    use Dispatchable, InteractsWithSockets, SerializesModels;
26
27
    public $ticket;
28
29
    /**
30
     * Create a new event instance.
31
     */
32
    public function __construct(Ticket $ticket)
33
    {
34
        $this->ticket = $ticket;
35
    }
36
37
    /**
38
     * Get the channels the event should broadcast on.
39
     *
40
     * @return \Illuminate\Broadcasting\Channel|array
41
     */
42
    public function broadcastOn()
43
    {
44
        return new PrivateChannel('ticket-close');
45
    }
46
}
47

src/Events/TicketOpenEvent.php 1 location

@@ 23-48 (lines=26) @@
20
 *
21
 * @package RexlManu\LaravelTickets\Events
22
 */
23
class TicketOpenEvent
24
{
25
    use Dispatchable, InteractsWithSockets, SerializesModels;
26
27
    public $ticket;
28
29
    /**
30
     * Create a new event instance.
31
     */
32
    public function __construct(Ticket $ticket)
33
    {
34
        $this->ticket = $ticket;
35
    }
36
37
    /**
38
     * Get the channels the event should broadcast on.
39
     *
40
     * @return \Illuminate\Broadcasting\Channel|array
41
     */
42
    public function broadcastOn()
43
    {
44
        return new PrivateChannel('ticket-open');
45
    }
46
}
47