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

HttpBasicAuthStrategy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 1
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRequestOptions() 0 9 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