Code Duplication    Length = 3-3 lines in 3 locations

Service/Importer.php 3 locations

@@ 169-171 (lines=3) @@
166
167
        $config = array_merge($default, $config);
168
169
        if (!empty($config['blacklist_domains']) && !empty($config['whitelist_domains'])) {
170
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
171
        }
172
173
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
174
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
@@ 173-175 (lines=3) @@
170
            throw new \InvalidArgumentException('Cannot use "blacklist_domains" and "whitelist_domains" at the same time');
171
        }
172
173
        if (!empty($config['blacklist_domains']) && !is_array($config['blacklist_domains'])) {
174
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
175
        }
176
177
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
178
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
@@ 177-179 (lines=3) @@
174
            throw new \InvalidArgumentException('Config parameter "blacklist_domains" must be an array');
175
        }
176
177
        if (!empty($config['whitelist_domains']) && !is_array($config['whitelist_domains'])) {
178
            throw new \InvalidArgumentException('Config parameter "whitelist_domains" must be an array');
179
        }
180
181
        $this->config = $config;
182
    }