Passed
Pull Request — master (#19)
by
unknown
02:19
created

PropertyDocSniff   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getListenedTokens() 0 6 1
1
<?php
2
3
namespace BestIt\Sniffs\Commenting;
4
5
/**
6
 * Class PropertyDocSniff
7
 *
8
 * @package BestIt\Sniffs\Commenting
9
 * @author Nick Lubisch <[email protected]>
10
 */
11
class PropertyDocSniff extends ConstantDocSniff
12
{
13
    /**
14
     * Returns which tokens should be listened to.
15
     *
16
     * @return int[] List of tokens which is to be listened to
17
     */
18 26
    public function getListenedTokens()
19
    {
20
        return [
21 26
            T_VARIABLE
22
        ];
23
    }
24
}
25