Passed
Push — master ( 8ab57e...992240 )
by Björn
01:03 queued 10s
created

FunctionRegistrationTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BestIt\Sniffs;
6
7
use const T_FUNCTION;
8
9
/**
10
 * Helps you with the registration of the method tests.
11
 *
12
 * @author blange <[email protected]>
13
 * @package BestIt\Sniffs
14
 */
15
trait FunctionRegistrationTrait
16
{
17
    /**
18
     * Sniffs for constants.
19
     *
20
     * @api
21
     *
22
     * @return array
23
     */
24
    public function register(): array
25
    {
26
        return [T_FUNCTION];
27
    }
28
}
29