| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function assembly(Rocket $rocket, Closure $next): Rocket |
||
| 29 | { |
||
| 30 | /* @var Rocket $rocket */ |
||
| 31 | $rocket = $next($rocket); |
||
| 32 | |||
| 33 | Logger::debug('[Wechat][V2][VerifySignaturePlugin] 插件开始装载', ['rocket' => $rocket]); |
||
| 34 | |||
| 35 | $config = get_provider_config('wechat', $rocket->getParams()); |
||
| 36 | |||
| 37 | if (!should_do_http_request($rocket->getDirection())) { |
||
| 38 | return $rocket; |
||
| 39 | } |
||
| 40 | |||
| 41 | verify_wechat_sign_v2($config, $rocket->getDestination()?->all() ?? []); |
||
|
|
|||
| 42 | |||
| 43 | Logger::info('[Wechat][V2][VerifySignaturePlugin] 插件装载完毕', ['rocket' => $rocket]); |
||
| 44 | |||
| 45 | return $rocket; |
||
| 46 | } |
||
| 48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.