Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

@@ 186-188 (lines=3) @@
183
        if (!is_array($meta)) {
184
            throw new PluginException('config.yml not found or syntax error');
185
        }
186
        if (!isset($meta['code']) || !$this->checkSymbolName($meta['code'])) {
187
            throw new PluginException('config.yml code empty or invalid_character(\W)');
188
        }
189
        if (!isset($meta['name'])) {
190
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
191
            throw new PluginException('config.yml name empty');
@@ 193-195 (lines=3) @@
190
            // nameは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
191
            throw new PluginException('config.yml name empty');
192
        }
193
        if (isset($meta['event']) && !$this->checkSymbolName($meta['event'])) { // eventだけは必須ではない
194
            throw new PluginException('config.yml event empty or invalid_character(\W) ');
195
        }
196
        if (!isset($meta['version'])) {
197
            // versionは直接クラス名やPATHに使われるわけではないため文字のチェックはなしし
198
            throw new PluginException('config.yml version invalid_character(\W) ');