Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 259-261 (lines=3) @@
256
        if (!is_array($meta)) {
257
            throw new PluginException('config.yml not found or syntax error');
258
        }
259
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
260
            throw new PluginException('config.yml code empty or invalid_character(\W)');
261
        }
262
        if (!isset($meta['name'])) {
263
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
264
            throw new PluginException('config.yml name empty');
@@ 266-268 (lines=3) @@
263
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
264
            throw new PluginException('config.yml name empty');
265
        }
266
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
267
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
268
        }
269
        if (!isset($meta['version'])) {
270
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
271
            throw new PluginException('config.yml version invalid_character(\W) ');