Code Duplication    Length = 9-10 lines in 3 locations

src/Kunstmaan/MultiDomainBundle/Helper/DomainConfiguration.php 3 locations

@@ 99-107 (lines=9) @@
96
    /**
97
     * @return string
98
     */
99
    public function getDefaultLocale()
100
    {
101
        $host = $this->getHost();
102
        if (isset($this->hosts[$host]['default_locale'])) {
103
            return $this->hosts[$host]['default_locale'];
104
        }
105
106
        return parent::getDefaultLocale();
107
    }
108
109
    /**
110
     * @param string|null $host
@@ 204-213 (lines=10) @@
201
    /**
202
     * Return (optional) extra config settings for the current host
203
     */
204
    public function getExtraData()
205
    {
206
        $host = $this->getHost();
207
208
        if (!isset($this->hosts[$host]['extra'])) {
209
            return parent::getExtraData();
210
        }
211
212
        return $this->hosts[$host]['extra'];
213
    }
214
215
    /**
216
     * Return (optional) extra config settings for the locales for the current host
@@ 218-227 (lines=10) @@
215
    /**
216
     * Return (optional) extra config settings for the locales for the current host
217
     */
218
    public function getLocalesExtraData()
219
    {
220
        $host = $this->getHost();
221
222
        if (!isset($this->hosts[$host]['locales_extra'])) {
223
            return parent::getLocalesExtraData();
224
        }
225
226
        return $this->hosts[$host]['locales_extra'];
227
    }
228
229
    /**
230
     * @return bool