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

FunctionRegistrationTrait::register()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
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_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