IndexAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
ccs 2
cts 2
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A restAbility() 0 3 1
1
<?php namespace Pz\LaravelDoctrine\Rest\Action;
2
3
use Pz\Doctrine\Rest\Action\CollectionAction;
4
use Pz\LaravelDoctrine\Rest\RestRequest;
5
use Pz\LaravelDoctrine\Rest\Traits\HandlesAuthorization;
6
7
class IndexAction extends CollectionAction
8
{
9
    use HandlesAuthorization;
10
11
    /**
12
     * @return string
13
     */
14 4
    protected function restAbility()
15
    {
16 4
        return 'restIndex';
17
    }
18
}
19