Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 201-203 (lines=3) @@
198
        if (!is_array($meta)) {
199
            throw new PluginException('config.yml not found or syntax error');
200
        }
201
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
202
            throw new PluginException('config.yml code empty or invalid_character(\W)');
203
        }
204
        if (!isset($meta['name'])) {
205
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
206
            throw new PluginException('config.yml name empty');
@@ 208-210 (lines=3) @@
205
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
206
            throw new PluginException('config.yml name empty');
207
        }
208
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
209
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
210
        }
211
        if (!isset($meta['version'])) {
212
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
213
            throw new PluginException('config.yml version invalid_character(\W) ');