Passed
Push — master ( a4ddd3...82bd79 )
by Alex
06:44
created

DynamicRoutesUnitTest::typesDataProvider()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 109
Code Lines 53

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 53
c 1
b 0
f 1
dl 0
loc 109
rs 9.0254
cc 3
nc 3
nop 0

How to fix   Long Method   

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
declare(strict_types = 1);
3
namespace Mezon\Router\Tests\Simple;
4
5
use Mezon\Router\RouterInterface;
6
use Mezon\Router\SimpleRouter;
7
use Mezon\Router\Tests\Base\DynamicRoutesTestClass;
8
use Mezon\Router\Tests\Base\BaseRouterUnitTestClass;
9
10
/**
11
 *
12
 * @psalm-suppress PropertyNotSetInConstructor
13
 */
14
class DynamicRoutesUnitTest extends DynamicRoutesTestClass
15
{
16
17
    /**
18
     *
19
     * {@inheritdoc}
20
     * @see BaseRouterUnitTestClass::getRouter()
21
     */
22
    protected function getRouter(): RouterInterface
23
    {
24
        return new SimpleRouter();
25
    }
26
}
27