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

HttpBasicAuthStrategy::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 7
nc 1
nop 1
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