Passed
Push — main ( 241083...5efb85 )
by Sebastian
04:13
created

ThatIs::getRestriction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CaptainHook\App\Hook\Condition\FileStaged;
13
14
use CaptainHook\App\Hook\Condition\File;
15
16
/**
17
 * Class ThatIs
18
 *
19
 * All FileStaged conditions are only applicable for `pre-commit` hooks.
20
 *
21
 * Example configuration:
22
 *
23
 * <code>
24
 * {
25
 *   "action": "some-action"
26
 *   "conditions": [
27
 *     {
28
 *       "exec": "CaptainHook.FileStaged.ThatIs",
29
 *       "args": [
30
 *         {"ofType": "php", "inDirectory": "foo/", "diff-filter": ["A", "C"]}
31
 *       ]
32
 *     }
33
 *   ]
34
 * }
35
 * </code>
36
 *
37
 * @package CaptainHook
38
 * @author  Sebastian Feldmann <[email protected]>
39
 * @link    https://github.com/captainhook-git/captainhook
40
 * @since   Class available since Release 5.16.0
41
 */
42
class ThatIs extends File\ThatIs
43
{
44
    use File\Staged;
45
}
46