Code Duplication    Length = 10-12 lines in 3 locations

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

@@ 116-127 (lines=12) @@
113
     *
114
     * @return bool
115
     */
116
    public function isMultiLanguage($host = null)
117
    {
118
        $host = $this->getRealHost($host);
119
120
        if (isset($this->hosts[$host])) {
121
            $hostInfo = $this->hosts[$host];
122
123
            return 'multi_lang' === $hostInfo['type'];
124
        }
125
126
        return parent::isMultiLanguage();
127
    }
128
129
    /**
130
     * @param string|null $host
@@ 134-143 (lines=10) @@
131
     *
132
     * @return array
133
     */
134
    public function getFrontendLocales($host = null)
135
    {
136
        $host = $this->getRealHost($host);
137
138
        if (isset($this->hosts[$host]['locales'])) {
139
            return array_keys($this->hosts[$host]['locales']);
140
        }
141
142
        return parent::getBackendLocales();
143
    }
144
145
    /**
146
     * @param string|null $host
@@ 150-159 (lines=10) @@
147
     *
148
     * @return array
149
     */
150
    public function getBackendLocales($host = null)
151
    {
152
        $host = $this->getRealHost($host);
153
154
        if (isset($this->hosts[$host]['locales'])) {
155
            return array_values($this->hosts[$host]['locales']);
156
        }
157
158
        return parent::getBackendLocales();
159
    }
160
161
    /**
162
     * @return bool