Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
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 | } |
||
29 | 2 | if (isset($auth['headerBearer'])) { |
|
30 | $this->authHeaders['Authorization'] = 'Bearer ' . $auth['headerBearer']; |
||
31 | } |
||
80 |