Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 243-245 (lines=3) @@
240
        if (!is_array($meta)) {
241
            throw new PluginException('config.yml not found or syntax error');
242
        }
243
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
244
            throw new PluginException('config.yml code empty or invalid_character(\W)');
245
        }
246
        if (!isset($meta['name'])) {
247
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
248
            throw new PluginException('config.yml name empty');
@@ 250-252 (lines=3) @@
247
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
248
            throw new PluginException('config.yml name empty');
249
        }
250
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
251
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
252
        }
253
        if (!isset($meta['version'])) {
254
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
255
            throw new PluginException('config.yml version invalid_character(\W) ');