FunctionRegistrationTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
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
     * @return array
21
     */
22
    public function register(): array
23
    {
24
        return [T_FUNCTION];
25
    }
26
}
27