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