Code Duplication    Length = 9-9 lines in 2 locations

src/PhpGitHooks/Module/Configuration/Domain/PhpCs.php 1 location

@@ 74-82 (lines=9) @@
71
    /**
72
     * @return ToolInterface
73
     */
74
    public function setEnabled(Enabled $enabled)
75
    {
76
        return new self(
77
            new Undefined(false),
78
            $enabled,
79
            new PhpCsStandard(null),
80
            new Ignore(null)
81
        );
82
    }
83
84
    /**
85
     * @param PhpCsStandard $standard

src/PhpGitHooks/Module/Configuration/Service/PhpCsFactory.php 1 location

@@ 31-39 (lines=9) @@
28
    /**
29
     * @return PhpCs
30
     */
31
    public static function setUndefined()
32
    {
33
        return new PhpCs(
34
            new Undefined(true),
35
            new Enabled(false),
36
            new PhpCsStandard(null),
37
            new Ignore(null)
38
        );
39
    }
40
}
41