Code Duplication    Length = 9-9 lines in 2 locations

src/Whoops/Handler/XmlResponseHandler.php 1 location

@@ 28-36 (lines=9) @@
25
     * @param  bool|null  $returnFrames
26
     * @return bool|static
27
     */
28
    public function addTraceToOutput($returnFrames = null)
29
    {
30
        if (func_num_args() == 0) {
31
            return $this->returnFrames;
32
        }
33
34
        $this->returnFrames = (bool) $returnFrames;
35
        return $this;
36
    }
37
38
    /**
39
     * @return int

src/Whoops/Handler/JsonResponseHandler.php 1 location

@@ 43-51 (lines=9) @@
40
     * @param  bool|null  $returnFrames
41
     * @return bool|static
42
     */
43
    public function addTraceToOutput($returnFrames = null)
44
    {
45
        if (func_num_args() == 0) {
46
            return $this->returnFrames;
47
        }
48
49
        $this->returnFrames = (bool) $returnFrames;
50
        return $this;
51
    }
52
53
    /**
54
     * @return int