Passed
Push — master ( b34030...56c38f )
by Sebastian
03:50
created

PrePush::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
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\Console\Command\Hook;
11
12
use sebastianfeldmann\CaptainHook\Console\Command\Hook;
13
use Symfony\Component\Console\Input\InputArgument;
14
15
/**
16
 * Class PrePush
17
 *
18
 * @package CaptainHook
19
 * @author  Sebastian Feldmann <[email protected]>
20
 * @link    https://github.com/sebastianfeldmann/captainhook
21
 * @since   Class available since Release 0.9.0
22
 */
23
class PrePush extends Hook
24
{
25
    /**
26
     * Hook to execute.
27
     *
28
     * @var string
29
     */
30
    protected $hookName = 'pre-push';
31
32
    /**
33
     * Configure the command.
34
     */
35 1
    protected function configure()
36
    {
37 1
        parent::configure();
38 1
        $this->addArgument('target', InputArgument::OPTIONAL, 'Target repository name');
39 1
        $this->addArgument('url', InputArgument::OPTIONAL, 'Target repository url');
40 1
    }
41
}
42