Code Duplication    Length = 7-10 lines in 2 locations

src/Transport/SendgridTransport.php 1 location

@@ 19-25 (lines=7) @@
16
    private $client;
17
    private $options;
18
19
    public function __construct(ClientInterface $client, $api_key)
20
    {
21
        $this->client = $client;
22
        $this->options = [
23
            'headers' => ['Authorization' => 'Bearer ' . $api_key]
24
        ];
25
    }
26
27
    /**
28
     * {@inheritdoc}

src/Transport/SendgridV3Transport.php 1 location

@@ 20-29 (lines=10) @@
17
    private $client;
18
    private $options;
19
20
    public function __construct(ClientInterface $client, $api_key)
21
    {
22
        $this->client = $client;
23
        $this->options = [
24
            'headers' => [
25
                'Authorization' => 'Bearer ' . $api_key,
26
                'Content-Type'  => 'application/json',
27
            ],
28
        ];
29
    }
30
31
    /**
32
     * {@inheritdoc}