Code Duplication    Length = 9-10 lines in 3 locations

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

@@ 94-102 (lines=9) @@
91
    /**
92
     * @return string
93
     */
94
    public function getDefaultLocale()
95
    {
96
        $host = $this->getHost();
97
        if (isset($this->hosts[$host]['default_locale'])) {
98
            return $this->hosts[$host]['default_locale'];
99
        }
100
101
        return parent::getDefaultLocale();
102
    }
103
104
    /**
105
     * @param string|null $host
@@ 191-200 (lines=10) @@
188
    /**
189
     * Return (optional) extra config settings for the current host
190
     */
191
    public function getExtraData()
192
    {
193
        $host = $this->getHost();
194
195
        if (!isset($this->hosts[$host]['extra'])) {
196
            return parent::getExtraData();
197
        }
198
199
        return $this->hosts[$host]['extra'];
200
    }
201
202
    /**
203
     * Return (optional) extra config settings for the locales for the current host
@@ 205-214 (lines=10) @@
202
    /**
203
     * Return (optional) extra config settings for the locales for the current host
204
     */
205
    public function getLocalesExtraData()
206
    {
207
        $host = $this->getHost();
208
209
        if (!isset($this->hosts[$host]['locales_extra'])) {
210
            return parent::getLocalesExtraData();
211
        }
212
213
        return $this->hosts[$host]['locales_extra'];
214
    }
215
216
    /**
217
     * @return bool