Code Duplication    Length = 8-8 lines in 2 locations

src/Payment/Notify/Paid.php 1 location

@@ 23-30 (lines=8) @@
20
     *
21
     * @return \Symfony\Component\HttpFoundation\Response
22
     */
23
    public function handle(Closure $closure)
24
    {
25
        $this->strict(
26
            $closure->bindTo($this)->__invoke($this->getMessage(), [$this, 'fail'])
27
        );
28
29
        return $this->toResponse();
30
    }
31
}
32

src/Payment/Notify/Refunded.php 1 location

@@ 26-33 (lines=8) @@
23
     *
24
     * @return \Symfony\Component\HttpFoundation\Response
25
     */
26
    public function handle(Closure $closure)
27
    {
28
        $this->strict(
29
            $closure->bindTo($this)->__invoke($this->getMessage(), [$this, 'fail'])
30
        );
31
32
        return $this->toResponse();
33
    }
34
35
    /**
36
     * Decrypt the `req_info` from request message.