Completed
Push — master ( 7fcbe3...50e2ca )
by Guillaume
23:24
created

HttpBasicAuthStrategy::getGuzzleRequestOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Eljam\GuzzleJwt\Strategy\Auth;
4
5
/**
6
 * @author Guillaume Cavana <[email protected]>
7
 */
8
class HttpBasicAuthStrategy extends AbstractBaseAuthStrategy
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function getRequestOptions()
14
    {
15
        return [
16
            \GuzzleHttp\RequestOptions::AUTH => [
17
                $this->options['username'],
18
                $this->options['password'],
19
            ],
20
        ];
21
    }
22
}
23