Passed
Push — master ( a325c0...46b506 )
by 世昌
02:20
created

NullMiddlewareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createMiddleware() 0 3 1
1
<?php
2
namespace suda\orm\middleware;
3
4
use suda\orm\TableStruct;
5
use suda\orm\middleware\Middleware;
6
7
/**
8
 * 感知表结构
9
 */
10
trait NullMiddlewareTrait
11
{
12
    public static function createMiddleware(TableStruct $struct):Middleware
1 ignored issue
show
Unused Code introduced by
The parameter $struct is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

12
    public static function createMiddleware(/** @scrutinizer ignore-unused */ TableStruct $struct):Middleware

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
13
    {
14
        return new NullMiddleware;
15
    }
16
}
17