| @@ 27-34 (lines=8) @@ | ||
| 24 | * Checks if the response is valid |
|
| 25 | * @return bool |
|
| 26 | */ |
|
| 27 | public function isValid(ShaComposer $shaComposer) |
|
| 28 | { |
|
| 29 | if (function_exists('hash_equals')) { |
|
| 30 | return hash_equals($shaComposer->compose($this->parameters), $this->shaSign); |
|
| 31 | } else { |
|
| 32 | return $shaComposer->compose($this->parameters) == $this->shaSign; |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| 36 | public function isSuccessful() |
|
| 37 | { |
|
| @@ 24-31 (lines=8) @@ | ||
| 21 | * @param ShaComposer $shaComposer |
|
| 22 | * @return bool |
|
| 23 | */ |
|
| 24 | public function isValid(ShaComposer $shaComposer) |
|
| 25 | { |
|
| 26 | if (function_exists('hash_equals')) { |
|
| 27 | return hash_equals($shaComposer->compose($this->parameters), $this->shaSign); |
|
| 28 | } else { |
|
| 29 | return $shaComposer->compose($this->parameters) == $this->shaSign; |
|
| 30 | } |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||