Code Duplication    Length = 3-3 lines in 2 locations

src/Eccube/Service/PluginService.php 2 locations

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