Code Duplication    Length = 10-12 lines in 3 locations

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

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