NotFound   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 6
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 4 1
1
<?php
2
namespace Phrest\Middleware;
3
4
class NotFound implements \Interop\Http\ServerMiddleware\MiddlewareInterface
5
{
6
    public function process(\Psr\Http\Message\ServerRequestInterface $request, \Interop\Http\ServerMiddleware\DelegateInterface $delegate)
7
    {
8
        throw \Phrest\Http\Exception::NotFound(
9
            new \Phrest\API\Error(\Phrest\API\ErrorCodes::PATH_NOT_FOUND, 'path not found')
10
        );
11
    }
12
}