PhpCsResponseStub::createEnabled()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Tests\Stub;
4
5
use PhpGitHooks\Module\Configuration\Contract\Response\PhpCsResponse;
6
7
class PhpCsResponseStub
8
{
9
    const STANDARD = 'PSR2';
10
    const IGNORE = '';
11
12
    /**
13
     * @param bool   $phpCs
14
     * @param string $phpCsStandard
15
     * @param string $ignore
16
     *
17
     * @return PhpCsResponse
18
     */
19
    public static function create($phpCs, $phpCsStandard, $ignore)
20
    {
21
        return new PhpCsResponse($phpCs, $phpCsStandard, $ignore);
22
    }
23
24
    /**
25
     * @return PhpCsResponse
26
     */
27
    public static function createEnabled()
28
    {
29
        return self::create(true, self::STANDARD, self::IGNORE);
30
    }
31
}
32