Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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