EcommerceDevelopmentAdminDecorator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A ecommerce() 0 4 1
1
<?php
2
3
4
/**
5
 * EcommerceDevelopmentAdminDecorator adds extra functionality to the DevelopmentAdmin
6
 * It creates a developer view (as in www.mysite.com/dev/) specifically for ecommerce.
7
 *
8
 *
9
 * @authors: Nicolaas [at] Sunny Side Up .co.nz
10
 * @package: ecommerce
11
 * @sub-package: cms
12
 * @inspiration: Silverstripe Ltd, Jeremy
13
 **/
14
class EcommerceDevelopmentAdminDecorator extends Extension
15
{
16
    private static $allowed_actions = array(
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
17
        'ecommerce',
18
    );
19
20
    /**
21
     * handles ecommerce request or provide options to run request in the form of HTML output.
22
     *
23
     * @param SS_HTTPRequest
24
     *
25
     * @return HTML
0 ignored issues
show
Documentation introduced by
Should the return type not be EcommerceDatabaseAdmin?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
26
     **/
27
    public function ecommerce(SS_HTTPRequest $request)
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        return EcommerceDatabaseAdmin::create();
30
    }
31
}
32