Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 321-323 (lines=3) @@
318
        if (!is_array($meta)) {
319
            throw new PluginException('config.yml not found or syntax error');
320
        }
321
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
322
            throw new PluginException('config.yml code empty or invalid_character(\W)');
323
        }
324
        if (!isset($meta['name'])) {
325
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
326
            throw new PluginException('config.yml name empty');
@@ 328-330 (lines=3) @@
325
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
326
            throw new PluginException('config.yml name empty');
327
        }
328
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
329
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
330
        }
331
        if (!isset($meta['version'])) {
332
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
333
            throw new PluginException('config.yml version invalid_character(\W) ');