Code Duplication    Length = 9-9 lines in 2 locations

src/Graviton/ProxyBundle/Definition/Loader/HttpLoader.php 1 location

@@ 134-142 (lines=9) @@
131
     *
132
     * @return void
133
     */
134
    public function setOptions($options)
135
    {
136
        if (!empty($options['prefix'])) {
137
            $options['storeKey'] = $options['prefix'];
138
            unset($options['prefix']);
139
        }
140
141
        $this->options = array_merge($this->options, $options);
142
    }
143
144
    /**
145
     * check if the url is valid

src/Graviton/ProxyBundle/Definition/Loader/ConfigurationLoader.php 1 location

@@ 54-62 (lines=9) @@
51
     *
52
     * @param array $options
53
     */
54
    public function setOptions($options)
55
    {
56
        if (!empty($options['prefix'])) {
57
            $options['storeKey'] = $options['prefix'];
58
            unset($options['prefix']);
59
        }
60
61
        $this->options = array_merge($this->options, $options);
62
    }
63
64
    /**
65
     * @inheritDoc