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

UseImperativeMood::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
crap 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