Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
28 | public function getClientSecret(): string |
||
29 | { |
||
30 | $clientSecret = (string)$this->get('CLIENT_SECRET'); |
||
31 | if (empty($clientSecret)) { |
||
32 | throw new RuntimeException( |
||
33 | sprintf(Message::ERROR_GET_ENV_VARIABLE, 'CLIENT_SECRET') |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | return $clientSecret; |
||
38 | } |
||
83 |