PhpCsResponseStub   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A createEnabled() 0 4 1
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