| Conditions | 3 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function callback($contents) |
||
| 41 | { |
||
| 42 | $params = array_map(function ($value) { |
||
| 43 | return urldecode($value); |
||
| 44 | }, $contents); |
||
| 45 | $md5Key = $this->config['md5key']; |
||
| 46 | $sign = Verify::makeSign($md5Key, $params); |
||
| 47 | $notifySign = array_key_exists('sign', $params) ? $params['sign'] : ''; |
||
| 48 | if (strcmp($sign, $notifySign) == 0) { |
||
| 49 | return true; |
||
| 50 | } |
||
| 51 | return false; |
||
| 52 | } |
||
| 62 |