Failed Conditions
Push — experimental/sf ( 37b3aa...cc45c1 )
by chihiro
921:05 queued 894:01
created

ShippingCsvUploadPage::CSVアップロード()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 5
loc 5
rs 10
c 0
b 0
f 0
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
Duplication introduced by
This class seems to be duplicated in your project.

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.

Loading history...
introduced by
Missing class doc comment
Loading history...
28
{
29
    public static $完了メッセージ = 'div.alert-primary';
0 ignored issues
show
Coding Style introduced by
Member variable "完了メッセージ" is not in valid camel caps format
Loading history...
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
Bug introduced by
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...
introduced by
Missing blank line before return statement
Loading history...
40
    }
41
42
    public function 入力_CSVファイル($fileName)
0 ignored issues
show
Coding Style introduced by
Method name "ShippingCsvUploadPage::入力_CSVファイル" is not in camel caps format
Loading history...
43
    {
44
        $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName);
45
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
46
    }
47
48
    public function CSVアップロード()
0 ignored issues
show
Coding Style introduced by
Method name "ShippingCsvUploadPage::CSVアップロード" is not in camel caps format
Loading history...
49
    {
50
        $this->tester->click(['id' => 'upload-button']);
51
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
52
    }
53
54
    public function 雛形ダウンロード()
0 ignored issues
show
Coding Style introduced by
Method name "ShippingCsvUploadPage::雛形ダウンロード" is not in camel caps format
Loading history...
55
    {
56
        $this->tester->click(['id' => 'download-button']);
57
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
58
    }
59
}