Completed
Push — master ( a50ce0...3b5091 )
by Sebastian
02:40
created

UseImperativeMood   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
/**
3
 * This file is part of CaptainHook.
4
 *
5
 * (c) Sebastian Feldmann <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace sebastianfeldmann\CaptainHook\Hook\Message\Rule;
11
12
/**
13
 * Class UseImperativeMood
14
 *
15
 * @package CaptainHook
16
 * @author  Sebastian Feldmann <[email protected]>
17
 * @link    https://github.com/sebastianfeldmann/captainhook
18
 * @since   Class available since Release 0.9.0
19
 */
20
class UseImperativeMood extends Blacklist
21
{
22
    /**
23
     * Constructor.
24
     */
25 5
    public function __construct()
26
    {
27 5
        $this->hint = 'Subject should be written in imperative mood';
28 5
        $this->setSubjectBlacklist(
29
            [
30 5
                'uploaded',
31
                'updated',
32
                'added',
33
                'created',
34
            ]
35
        );
36 5
    }
37
}
38