EC-CUBE /
ec-cube
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /* |
||
| 3 | * This file is part of EC-CUBE |
||
| 4 | * |
||
| 5 | * Copyright(c) 2000-2018 LOCKON CO.,LTD. All Rights Reserved. |
||
| 6 | * |
||
| 7 | * http://www.lockon.co.jp/ |
||
| 8 | * |
||
| 9 | * This program is free software; you can redistribute it and/or |
||
| 10 | * modify it under the terms of the GNU General Public License |
||
| 11 | * as published by the Free Software Foundation; either version 2 |
||
| 12 | * of the License, or (at your option) any later version. |
||
| 13 | * |
||
| 14 | * This program is distributed in the hope that it will be useful, |
||
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 17 | * GNU General Public License for more details. |
||
| 18 | * |
||
| 19 | * You should have received a copy of the GNU General Public License |
||
| 20 | * along with this program; if not, write to the Free Software |
||
| 21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
||
| 22 | */ |
||
| 23 | |||
| 24 | namespace Page\Admin; |
||
| 25 | |||
| 26 | |||
| 27 | View Code Duplication | class ShippingCsvUploadPage extends AbstractAdminPageStyleGuide |
|
|
0 ignored issues
–
show
|
|||
| 28 | { |
||
| 29 | public static $完了メッセージ = 'div.alert-primary'; |
||
|
0 ignored issues
–
show
|
|||
| 30 | |||
| 31 | public function __construct(\AcceptanceTester $I) |
||
| 32 | { |
||
| 33 | parent::__construct($I); |
||
| 34 | } |
||
| 35 | |||
| 36 | public static function go($I) |
||
| 37 | { |
||
| 38 | $page = new ProductCsvUploadPage($I); |
||
| 39 | return $page->goPage('/shipping/shipping_csv_upload', '出荷CSV登録出荷管理'); |
||
|
0 ignored issues
–
show
The method
goPage() cannot be called from this context as it is declared protected in class Page\Admin\AbstractAdminPage.
This check looks for access to methods that are not accessible from the current context. If you need to make a method accessible to another context you can raise its visibility level in the defining class. Loading history...
|
|||
| 40 | } |
||
| 41 | |||
| 42 | public function 入力_CSVファイル($fileName) |
||
|
0 ignored issues
–
show
|
|||
| 43 | { |
||
| 44 | $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName); |
||
| 45 | return $this; |
||
|
0 ignored issues
–
show
|
|||
| 46 | } |
||
| 47 | |||
| 48 | public function CSVアップロード() |
||
|
0 ignored issues
–
show
|
|||
| 49 | { |
||
| 50 | $this->tester->click(['id' => 'upload-button']); |
||
| 51 | return $this; |
||
|
0 ignored issues
–
show
|
|||
| 52 | } |
||
| 53 | |||
| 54 | public function 雛形ダウンロード() |
||
|
0 ignored issues
–
show
|
|||
| 55 | { |
||
| 56 | $this->tester->click(['id' => 'download-button']); |
||
| 57 | return $this; |
||
|
0 ignored issues
–
show
|
|||
| 58 | } |
||
| 59 | } |
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.