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

Any::isTrue()   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 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
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\FileChanged;
13
14
use CaptainHook\App\Hook\Condition\File;
15
16
/**
17
 * Class Any
18
 *
19
 * The FileChange condition is applicable for `post-merge` and `post-checkout` hooks.
20
 * For example, it can be used to trigger an automatic composer install if the composer.json
21
 * or `composer.lock` file is changed during a checkout or merge.
22
 *
23
 * Example configuration:
24
 *
25
 * <code>
26
 * {
27
 *   "action": "some-action"
28
 *   "conditions": [
29
 *     {
30
 *       "exec": "CaptainHook.FileChanged.Any",
31
 *       "args": [
32
 *         ["list", "of", "files"]
33
 *       ]
34
 *     }
35
 *   ]
36
 * }
37
 *  </code>
38
 *
39
 * @package CaptainHook
40
 * @author  Sebastian Feldmann <[email protected]>
41
 * @link    https://github.com/captainhook-git/captainhook
42
 * @since   Class available since Release 4.2.0
43
 */
44
class Any extends File\Any
45
{
46
    use File\Changed;
47
}
48