Code Duplication    Length = 7-8 lines in 2 locations

vendor/cakephp/cakephp/src/Mailer/Email.php 1 location

@@ 1380-1387 (lines=8) @@
1377
     */
1378
    protected function _applyConfig($config)
1379
    {
1380
        if (is_string($config)) {
1381
            $name = $config;
1382
            $config = static::config($name);
1383
            if (empty($config)) {
1384
                throw new InvalidArgumentException(sprintf('Unknown email configuration "%s".', $name));
1385
            }
1386
            unset($name);
1387
        }
1388
1389
        $this->_profile = array_merge($this->_profile, $config);
1390

vendor/symfony/config/Util/XmlUtils.php 1 location

@@ 91-97 (lines=7) @@
88
                throw new \InvalidArgumentException('The schemaOrCallable argument has to be a valid path to XSD file or callable.');
89
            }
90
91
            if (!$valid) {
92
                $messages = static::getXmlErrors($internalErrors);
93
                if (empty($messages)) {
94
                    $messages = array(sprintf('The XML file "%s" is not valid.', $file));
95
                }
96
                throw new \InvalidArgumentException(implode("\n", $messages), 0, $e);
97
            }
98
        }
99
100
        libxml_clear_errors();