SubmitAddonController   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
A Title() 0 4 1
A Link() 0 4 1
A MenuItemType() 0 4 1
1
<?php
2
/**
3
 * Instructions on how to submit a module.
4
 * Doesn't actually handle the submission itself,
5
 * that's left to packagist.org.
6
 */
7
class SubmitAddonController extends SiteController
8
{
9
10
    public static $allowed_actions = array(
11
        'index',
12
    );
13
14
    public function index()
15
    {
16
        return $this->renderWith(array('SubmitAddon', 'Page'));
17
    }
18
19
    public function Title()
20
    {
21
        return 'Submit';
22
    }
23
24
    public function Link()
25
    {
26
        return Controller::join_links(Director::baseURL(), 'submit');
27
    }
28
29
    public function MenuItemType()
30
    {
31
        return 'button';
32
    }
33
}
34