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/ProxyExtensionBundle/Definition/Loader/ConfigurationLoaderAbstract.php 1 location

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