Passed
Pull Request — master (#84)
by Maximo
04:41
created

AclMiddleware::call()   B

Complexity

Conditions 11
Paths 15

Size

Total Lines 50
Code Lines 31

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 26
CRAP Score 11.5077

Importance

Changes 0
Metric Value
cc 11
eloc 31
nc 15
nop 1
dl 0
loc 50
ccs 26
cts 31
cp 0.8387
crap 11.5077
rs 7.3166
c 0
b 0
f 0

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gewaer\Middleware;
6
7
use Canvas\Middleware\AclMiddleware as CanvasAclMiddleware;
8
9
/**
10
 * Class AclMiddleware.
11
 *
12
 * @package Canvas\Middleware
13
 */
14
class AclMiddleware extends CanvasAclMiddleware
15
{
16
}
17