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 CustomerAgreementSettingPage extends AbstractAdminPage |
|
0 ignored issues
–
show
|
|||
17 | { |
||
18 | public static $登録完了メッセージ = '#main .container-fluid div:nth-child(1) .alert-success'; |
||
19 | |||
20 | public function __construct(\AcceptanceTester $I) |
||
21 | { |
||
22 | parent::__construct($I); |
||
23 | } |
||
24 | |||
25 | public static function go($I) |
||
26 | { |
||
27 | $page = new self($I); |
||
28 | |||
29 | return $page->goPage('/setting/shop/customer_agreement', 'ショップ設定利用規約管理'); |
||
30 | } |
||
31 | |||
32 | public function 入力_会員規約($value) |
||
33 | { |
||
34 | $this->tester->fillField(['id' => 'customer_agreement_customer_agreement'], $value); |
||
35 | |||
36 | return $this; |
||
37 | } |
||
38 | |||
39 | public function 登録() |
||
40 | { |
||
41 | $this->tester->click('#form1 #aside_column button'); |
||
42 | } |
||
43 | } |
||
44 |
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.