Code Duplication    Length = 9-10 lines in 3 locations

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

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