VariableRegistrationTrait   A
last analyzed

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 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace BestIt\Sniffs;
6
7
use const T_VARIABLE;
8
9
/**
10
 * Helps you with the registration of the var sniffs.
11
 *
12
 * @author blange <[email protected]>
13
 * @package BestIt\Sniffs
14
 */
15
trait VariableRegistrationTrait
16
{
17
    /**
18
     * Sniffs for variables.
19
     *
20
     * @return array
21
     */
22
    public function register(): array
23
    {
24
        return [
25
            T_VARIABLE
26
        ];
27
    }
28
}
29