SubmitAddonController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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