Code Duplication    Length = 3-3 lines in 3 locations

Service/Importer.php 3 locations

@@ 216-218 (lines=3) @@
213
214
        $config = array_merge($default, $config);
215
216
        if (!empty($config['blacklist_domains']) && !empty($config['whitelist_domains'])) {
217
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
218
        }
219
220
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
221
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
@@ 220-222 (lines=3) @@
217
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
218
        }
219
220
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
221
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
222
        }
223
224
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
225
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
@@ 224-226 (lines=3) @@
221
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
222
        }
223
224
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
225
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
226
        }
227
228
        $this->config = $config;
229
    }