Passed
Push — master ( 7bee4d...457c92 )
by Sebastian
01:54
created

PostMerge   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A configure() 0 4 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 CaptainHook\App\Console\Command\Hook;
11
12
use CaptainHook\App\Console\Command\Hook;
13
use CaptainHook\App\Hooks;
14
use Symfony\Component\Console\Input\InputArgument;
15
16
/**
17
 * Class PostMerge
18
 *
19
 * @package CaptainHook
20
 * @author  Sebastian Feldmann <[email protected]>
21
 * @link    https://github.com/captainhookphp/captainhook
22
 * @since   Class available since Release 4.0.1
23
 */
24
class PostMerge extends Hook
25
{
26
    /**
27
     * Hook to execute.
28
     *
29
     * @var string
30
     */
31
    protected $name = Hooks::POST_MERGE;
32
33
    /**
34
     * Configure the command
35
     *
36
     * @return void
37
     */
38 1
    protected function configure() : void
39
    {
40 1
        parent::configure();
41 1
        $this->addArgument('squash', InputArgument::OPTIONAL, 'Merge was done with a squash merge.');
42 1
    }
43
}
44