Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 273-275 (lines=3) @@
270
        if (!is_array($meta)) {
271
            throw new PluginException('config.yml not found or syntax error');
272
        }
273
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
274
            throw new PluginException('config.yml code empty or invalid_character(\W)');
275
        }
276
        if (!isset($meta['name'])) {
277
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
278
            throw new PluginException('config.yml name empty');
@@ 280-282 (lines=3) @@
277
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
278
            throw new PluginException('config.yml name empty');
279
        }
280
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
281
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
282
        }
283
        if (!isset($meta['version'])) {
284
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
285
            throw new PluginException('config.yml version invalid_character(\W) ');