AllPermission   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 6 1
1
<?php
2
3
namespace Omatech\Mage\Core\Repositories\Permissions;
4
5
use Omatech\Mage\Core\Domains\Permissions\Contracts\AllPermissionInterface;
6
use Omatech\Mage\Core\Repositories\PermissionBaseRepository;
7
8
class AllPermission extends PermissionBaseRepository implements AllPermissionInterface
9
{
10
    /**
11
     * @return mixed
12
     */
13 1
    public function get()
14
    {
15 1
        return $this->query()
16 1
            ->paginate()
17 1
            ->toArray();
18
    }
19
}
20