VariableRegistrationTrait::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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