Code Duplication    Length = 10-10 lines in 3 locations

lib/Caxy/HtmlDiff/HtmlDiff.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @return self
39
     */
40
    public static function create($oldText, $newText, HtmlDiffConfig $config = null)
41
    {
42
        $diff = new self($oldText, $newText);
43
44
        if (null !== $config) {
45
            $diff->setConfig($config);
46
        }
47
48
        return $diff;
49
    }
50
51
    /**
52
     * @param $bool

lib/Caxy/HtmlDiff/ListDiff.php 1 location

@@ 19-28 (lines=10) @@
16
     *
17
     * @return ListDiff
18
     */
19
    public static function create($oldText, $newText, HtmlDiffConfig $config = null)
20
    {
21
        $diff = new self($oldText, $newText);
22
23
        if (null !== $config) {
24
            $diff->setConfig($config);
25
        }
26
27
        return $diff;
28
    }
29
30
    public function build()
31
    {

lib/Caxy/HtmlDiff/ListDiffLines.php 1 location

@@ 44-53 (lines=10) @@
41
     *
42
     * @return ListDiffLines
43
     */
44
    public static function create($oldText, $newText, HtmlDiffConfig $config = null)
45
    {
46
        $diff = new self($oldText, $newText);
47
48
        if (null !== $config) {
49
            $diff->setConfig($config);
50
        }
51
52
        return $diff;
53
    }
54
55
    /**
56
     * {@inheritDoc}