Code Duplication    Length = 11-11 lines in 2 locations

Adapter/SQS/Consumer.php 1 location

@@ 67-77 (lines=11) @@
64
     *
65
     * @todo test if using $handlerList->removeByInstance we can disable debug as well
66
     */
67
    public function setDebug($debug)
68
    {
69
        if ($debug == $this->debug) {
70
            return $this;
71
        }
72
        if ($debug) {
73
            $handlerList = $this->client->getHandlerList();
74
            $handlerList->interpose(new TraceMiddleware($debug === true ? [] : $debug));
75
        }
76
77
        return $this;
78
    }
79
80
    /**

Adapter/SQS/Producer.php 1 location

@@ 41-51 (lines=11) @@
38
     *
39
     * @todo test if using $handlerList->removeByInstance we can disable debug as well
40
     */
41
    public function setDebug($debug)
42
    {
43
        if ($debug == $this->debug) {
44
            return $this;
45
        }
46
        if ($debug) {
47
            $handlerList = $this->client->getHandlerList();
48
            $handlerList->interpose(new TraceMiddleware($debug === true ? [] : $debug));
49
        }
50
51
        return $this;
52
    }
53
54
    /**