Code Duplication    Length = 10-10 lines in 2 locations

lib/Caxy/HtmlDiff/HtmlDiff.php 1 location

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

lib/Caxy/HtmlDiff/ListDiffNew.php 1 location

@@ 19-28 (lines=10) @@
16
     *
17
     * @return self
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
    {