Passed
Push — main ( cebfe5...3df9c7 )
by Sebastian
04:33
created

Success::execute()   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 4
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\Debug;
13
14
use CaptainHook\App\Config;
15
use CaptainHook\App\Console\IO;
16
use CaptainHook\App\Hook\Debug;
17
use SebastianFeldmann\Git\Repository;
18
19
/**
20
 * Debug hook to test hook triggering that allows the hook to pass
21
 *
22
 * @package CaptainHook
23
 * @author  Sebastian Feldmann <[email protected]>
24
 * @link    https://github.com/captainhookphp/captainhook
25
 * @since   Class available since Release 4.0.4
26
 */
27
class Success extends Debug
28
{
29
    /**
30
     * Executes the action
31
     *
32
     * @param  \CaptainHook\App\Config           $config
33
     * @param  \CaptainHook\App\Console\IO       $io
34
     * @param  \SebastianFeldmann\Git\Repository $repository
35
     * @param  \CaptainHook\App\Config\Action    $action
36
     * @return void
37
     * @throws \Exception
38
     */
39 1
    public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void
40
    {
41 1
        $this->debugOutput($io, $repository);
42
    }
43
}
44