Conditions | 4 |
Paths | 8 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
55 | public function getText(): string |
||
56 | { |
||
57 | $data = []; |
||
58 | $data[] = $this->authentication !== null ? "T:{$this->authentication}" : ''; |
||
59 | $data[] = "S:{$this->ssid}"; |
||
60 | $data[] = $this->password !== null ? "P:{$this->password}" : ''; |
||
61 | $data[] = $this->hidden !== null ? "H:{$this->hidden}" : ''; |
||
62 | return 'WIFI:' . implode(';', $data) . ';'; |
||
63 | } |
||
64 | } |
||
65 |