Completed
Pull Request — master (#1)
by Nic
03:25
created

TestWishListPage_Controller::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * Class TestWishListPage
5
 */
6
class TestWishListPage extends Page implements TestOnly
7
{
8
9
}
10
11
/**
12
 * Class TestWishListPage_Controller
13
 */
14
class TestWishListPage_Controller extends Page_Controller implements TestOnly
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

Loading history...
15
{
16
17
    /**
18
     * @var array
19
     */
20
    private static $url_handler = [
0 ignored issues
show
Unused Code introduced by
The property $url_handler is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
21
        'test-wishlist-page-path' => 'index'
22
    ];
23
24
    /**
25
     * @var array
26
     */
27
    private static $extensions = [
28
        'ProductWishListControllerExtension',
29
    ];
30
31
    /**
32
     * empty init
33
     */
34
    public function init()
35
    {
36
        parent::init();
37
        Requirements::clear();
38
    }
39
40
}