Code Duplication    Length = 10-12 lines in 3 locations

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

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