Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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