Passed
Push — master ( d7e703...d0dd1b )
by Patrick
09:55
created

FVSPlugin   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_plugin_entry_point() 0 5 1
A get_secure_menu_entries() 0 10 3
1
<?php
2
class FVSPlugin extends SecurePlugin
3
{
4
    function get_secure_menu_entries($page, $user)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
5
    {
6
        $ret = array(
7
                'Volunteer' => $page->secure_root.'fvs/index.php'
8
                );
9
        if($user !== null && $user->isInGroupNamed('VolunteerAdmins'))
10
        {
11
            $ret['Volunteer System Admin'] = $page->secure_root.'fvs/_admin/index.php';
12
        }
13
        return $ret;
14
    }
15
16
    function get_plugin_entry_point()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
17
    {
18
        return array(
19
                'name'=>'Volunteer',
20
                'link' => 'fvs/index.php'
21
                );
22
    }
23
}
24
/* vim: set tabstop=4 shiftwidth=4 expandtab: */
25