| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 19 | public function getResponse($username, $password) |
|
| 25 | { |
||
| 26 | 19 | return implode('', [ |
|
| 27 | 19 | pack('C', strlen(self::LOGIN_KEY)), |
|
| 28 | 19 | self::LOGIN_KEY, |
|
| 29 | 19 | self::STRING_TYPE_HINT, |
|
| 30 | 19 | pack('N', strlen($username)), |
|
| 31 | 19 | $username, |
|
| 32 | 19 | pack('C', strlen(self::PASSWORD_KEY)), |
|
| 33 | 19 | self::PASSWORD_KEY, |
|
| 34 | 19 | self::STRING_TYPE_HINT, |
|
| 35 | 19 | pack('N', strlen($password)), |
|
| 36 | 19 | $password, |
|
| 37 | 19 | ]); |
|
| 38 | } |
||
| 39 | } |
||
| 40 |