Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
62 | 6 | public function decrypt() |
|
63 | { |
||
64 | 6 | if ($this->flag) { |
|
65 | 3 | $this->cipherText = $this->data; |
|
66 | } |
||
67 | 6 | $this->plainText = openssl_decrypt( |
|
68 | 6 | $this->cipherText, |
|
69 | 6 | $this->cipher, |
|
70 | 6 | $this->key, |
|
71 | 6 | $this->options, |
|
72 | 6 | $this->iv, |
|
73 | 6 | $this->tag, |
|
74 | 6 | $this->aad |
|
75 | ); |
||
76 | 6 | $this->flag = 0; |
|
77 | 6 | return $this; |
|
78 | } |
||
80 |