Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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