Code Duplication    Length = 20-22 lines in 2 locations

src/Foundation/Commands/SendAttachment.php 1 location

@@ 14-33 (lines=20) @@
11
use Illuminate\Queue\InteractsWithQueue;
12
use Illuminate\Contracts\Queue\ShouldQueue;
13
14
class SendAttachment implements ShouldQueue
15
{
16
    use InteractsWithQueue, Queueable;
17
18
    private $chat;
19
    private $recipient;
20
    private $attachment;
21
22
    public function __construct(Chat $chat, User $recipient, Attachment $attachment)
23
    {
24
        $this->chat = $chat;
25
        $this->recipient = $recipient;
26
        $this->attachment = $attachment;
27
    }
28
29
    public function handle(): void
30
    {
31
        // TODO
32
    }
33
}
34

src/Foundation/Commands/SendRequest.php 1 location

@@ 13-34 (lines=22) @@
10
use Illuminate\Queue\InteractsWithQueue;
11
use Illuminate\Contracts\Queue\ShouldQueue;
12
13
class SendRequest implements ShouldQueue
14
{
15
    use InteractsWithQueue, Queueable;
16
17
    private $chat;
18
    private $recipient;
19
    private $endpoint;
20
    private $parameters;
21
22
    public function __construct(Chat $chat, User $recipient, string $endpoint, array $parameters = [])
23
    {
24
        $this->chat = $chat;
25
        $this->recipient = $recipient;
26
        $this->endpoint = $endpoint;
27
        $this->parameters = $parameters;
28
    }
29
30
    public function handle(): void
31
    {
32
        // TODO
33
    }
34
}
35