Completed
Push — master ( fb1da0...84ba9e )
by Nic
10s
created

TestWishListPage_Controller   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 32
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
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 string
19
     */
20
    private static $managed_object = 'TestProductWishList';
0 ignored issues
show
Unused Code introduced by
The property $managed_object 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
22
    /**
23
     * @var array
24
     */
25
    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...
26
        'test-wishlist-page-path' => 'index'
27
    ];
28
29
    /**
30
     * @var array
31
     */
32
    private static $extensions = [
33
        'ProductWishListControllerExtension',
34
    ];
35
36
    /**
37
     * empty init
38
     */
39 1
    public function init()
40
    {
41 1
        parent::init();
42 1
        Requirements::clear();
43 1
    }
44
45
}