Completed
Push — master ( 8e197a...53f998 )
by Gabriel
02:44
created

Dispatcher::get()   C

Complexity

Conditions 14
Paths 19

Size

Total Lines 44
Code Lines 29

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 210

Importance

Changes 0
Metric Value
dl 0
loc 44
ccs 0
cts 29
cp 0
rs 5.0864
c 0
b 0
f 0
cc 14
eloc 29
nc 19
nop 1
crap 210

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
namespace Nip\Http\ServerMiddleware;
4
5
use Middleland\Dispatcher as MiddlelandDispatcher;
6
7
/**
8
 * Class Dispatcher
9
 * @package Nip\Http\ServerMiddleware
10
 *
11
 * @based on https://github.com/oscarotero/middleland/blob/master/src/Dispatcher.php
12
 */
13
class Dispatcher extends MiddlelandDispatcher implements DispatcherInterface
14
{
15
}
16