Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0987 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
23 | 2 | public function buildAuth(Query $query) |
|
24 | { |
||
25 | 2 | $auth = $this->db->getAuth(); |
|
26 | 2 | if (isset($auth['headerToken'])) { |
|
27 | 2 | $this->authHeaders['Authorization'] = 'token ' . $auth['headerToken']; |
|
28 | 2 | } |
|
29 | 2 | if (isset($auth['headerBearer'])) { |
|
30 | $this->authHeaders['Authorization'] = 'Bearer ' . $auth['headerBearer']; |
||
31 | } |
||
32 | 2 | } |
|
33 | |||
80 |