These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of EC-CUBE |
||
5 | * |
||
6 | * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved. |
||
7 | * |
||
8 | * http://www.ec-cube.co.jp/ |
||
9 | * |
||
10 | * For the full copyright and license information, please view the LICENSE |
||
11 | * file that was distributed with this source code. |
||
12 | */ |
||
13 | |||
14 | namespace Page\Admin; |
||
15 | |||
16 | View Code Duplication | class PluginLocalInstallPage extends AbstractAdminPageStyleGuide |
|
0 ignored issues
–
show
|
|||
17 | { |
||
18 | public static function go($I) |
||
19 | { |
||
20 | $page = new self($I); |
||
21 | |||
22 | return $page->goPage('/store/plugin/install', '独自プラグインのアップロードオーナーズストア'); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param $fileName |
||
27 | * |
||
28 | * @return PluginManagePage |
||
29 | */ |
||
30 | public function アップロード($fileName) |
||
31 | { |
||
32 | $this->tester->attachFile(['id' => 'plugin_local_install_plugin_archive'], $fileName); |
||
33 | $this->tester->click(['css' => '#upload-form > div > div > div > div > div.card-body > div > div > button']); |
||
34 | |||
35 | return PluginManagePage::at($this->tester); |
||
36 | } |
||
37 | } |
||
38 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.