Code Duplication    Length = 10-12 lines in 3 locations

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

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