Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function encrypt($params, $filterKeys = []) |
||
34 | { |
||
35 | if (empty($filterKeys) === false) { |
||
36 | $params = $this->filter($params, $filterKeys); |
||
37 | } |
||
38 | |||
39 | return isset($params['status']) === true |
||
40 | ? $this->hash($params, ':') |
||
41 | : $this->hash(array_merge([$this->key], $params), '$'); |
||
42 | } |
||
43 | |||
74 |