Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 136-138 (lines=3) @@
133
        if (!is_array($meta)) {
134
            throw new PluginException('config.yml not found or syntax error');
135
        }
136
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
137
            throw new PluginException('config.yml code empty or invalid_character(\W)');
138
        }
139
        if (!isset($meta['name'])) {
140
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
141
            throw new PluginException('config.yml name empty');
@@ 143-145 (lines=3) @@
140
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
141
            throw new PluginException('config.yml name empty');
142
        }
143
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
144
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
145
        }
146
        if (!isset($meta['version'])) {
147
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
148
            throw new PluginException('config.yml version invalid_character(\W) ');