Test Failed
Pull Request — master (#9)
by Maximo
03:13
created

AclTask::mainAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 5
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
3
namespace Gewaer\Cli\Tasks;
4
5
use Phalcon\Cache\Backend\Libmemcached;
6
use Phalcon\Cli\Task as PhTask;
7
8
/**
9
 * Class ClearcacheTask
10
 *
11
 * @package Niden\Cli\Tasks
12
 *
13
 * @property Libmemcached $cache
14
 */
15
class AclTask extends PhTask
16
{
17
    /**
18
     * Create the default roles of the system
19
     */
20
    public function mainAction()
21
    {
22
        $this->acl->addRole('Default.Administrator');
0 ignored issues
show
Bug Best Practice introduced by
The property acl does not exist on Gewaer\Cli\Tasks\AclTask. Since you implemented __get, consider adding a @property annotation.
Loading history...
23
        $this->acl->addRole('Default.Agents');
24
        $this->acl->addRole('Default.Users');
25
    }
26
}
27