| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected function process(string $header): array |
||
| 20 | { |
||
| 21 | list($token_type, $payload) = explode(" ", $header, 2); |
||
| 22 | |||
| 23 | $data = array(); |
||
| 24 | if (strcasecmp($token_type, "Bearer") == 0) { |
||
| 25 | $section = base64_decode($payload); |
||
| 26 | $data = explode(':', $section); |
||
| 27 | } |
||
| 28 | |||
| 29 | return $data; |
||
| 30 | } |
||
| 31 | |||
| 37 |