Code Duplication    Length = 8-8 lines in 2 locations

DumperManager.php 2 locations

@@ 47-54 (lines=8) @@
44
     *
45
     * @throws \RuntimeException If no dumper was found
46
     */
47
    public function get($name)
48
    {
49
        if (!isset($this->dumpers[$name])) {
50
            throw new \RuntimeException(sprintf('The dumper "%s" does not exist', $name));
51
        }
52
53
        return $this->dumpers[$name];
54
    }
55
56
    /**
57
     * Sets a dumper.
@@ 74-81 (lines=8) @@
71
     *
72
     * @throws \RuntimeException If no dumper was found
73
     */
74
    public function remove($name)
75
    {
76
        if (!isset($this->dumpers[$name])) {
77
            throw new \RuntimeException(sprintf('The dumper "%s" does not exist', $name));
78
        }
79
80
        unset($this->dumpers[$name]);
81
    }
82
83
    /**
84
     * Return true if $name exists, false otherwise.