Passed
Push — master ( 035a69...ef3bdc )
by Kirill
03:22
created

DemoInterceptor   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A process() 0 3 1
1
<?php
2
3
/**
4
 * Spiral Framework.
5
 *
6
 * @license   MIT
7
 * @author    Anton Titov (Wolfy-J)
8
 */
9
10
declare(strict_types=1);
11
12
namespace Spiral\Tests\Core;
13
14
use Spiral\Core\CoreInterceptorInterface;
15
use Spiral\Core\CoreInterface;
16
17
class DemoInterceptor implements CoreInterceptorInterface
18
{
19
    public function process(string $controller, string $action, array $parameters, CoreInterface $core)
20
    {
21
        return '?' . $core->callAction($controller, $action, $parameters) . '!';
22
    }
23
}
24