Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
36 | protected function renderAuthorization() |
||
37 | { |
||
38 | $list = []; |
||
39 | |||
40 | foreach (['client_id', 'access_token'] as $key) { |
||
41 | $value = $this->getOptions()->get($key); |
||
42 | if (empty($value)) { |
||
43 | throw new \InvalidArgumentException('['.$key.'] ausente!'); |
||
44 | } |
||
45 | |||
46 | $list[] = $key.':'.$value; |
||
47 | } |
||
48 | |||
49 | return $list; |
||
50 | } |
||
51 | } |
||
52 |