Code Duplication    Length = 3-3 lines in 3 locations

Service/Importer.php 3 locations

@@ 182-184 (lines=3) @@
179
180
        $config = array_merge($default, $config);
181
182
        if (!empty($config['blacklist_domains']) && !empty($config['whitelist_domains'])) {
183
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
184
        }
185
186
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
187
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
@@ 186-188 (lines=3) @@
183
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
184
        }
185
186
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
187
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
188
        }
189
190
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
191
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
@@ 190-192 (lines=3) @@
187
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
188
        }
189
190
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
191
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
192
        }
193
194
        $this->config = $config;
195
    }