| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 4 | public function generateToken(array $payload): string |
|
| 25 | { |
||
| 26 | 4 | $encodedHeader = $this->getEncodedHeader(); |
|
| 27 | 4 | $encodedPayload = $this->encodePayload($payload); |
|
| 28 | 4 | $signature = $this->calculateSignature($encodedHeader, $encodedPayload); |
|
| 29 | 4 | return $this->getToken($encodedHeader, $encodedPayload, $signature); |
|
| 30 | } |
||
| 64 |