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|$this
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

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