| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function getCredentials($driver) |
||
| 23 | { |
||
| 24 | $section = $this->session->getSection('uniman'); |
||
| 25 | $settings = $section->$driver; |
||
| 26 | if (!$settings) { |
||
| 27 | return []; |
||
| 28 | } |
||
| 29 | $credentials = json_decode(base64_decode($settings), true); |
||
| 30 | if (!$credentials) { |
||
| 31 | return []; |
||
| 32 | } |
||
| 33 | return $credentials; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |