Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 223-225 (lines=3) @@
220
        if (!is_array($meta)) {
221
            throw new PluginException('config.yml not found or syntax error');
222
        }
223
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
224
            throw new PluginException('config.yml code empty or invalid_character(\W)');
225
        }
226
        if (!isset($meta['name'])) {
227
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
228
            throw new PluginException('config.yml name empty');
@@ 230-232 (lines=3) @@
227
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
228
            throw new PluginException('config.yml name empty');
229
        }
230
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
231
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
232
        }
233
        if (!isset($meta['version'])) {
234
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
235
            throw new PluginException('config.yml version invalid_character(\W) ');