Code Duplication    Length = 10-10 lines in 2 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/Table/TableDiff.php 1 location

@@ 57-66 (lines=10) @@
54
     *
55
     * @return self
56
     */
57
    public static function create($oldText, $newText, HtmlDiffConfig $config = null)
58
    {
59
        $diff = new self($oldText, $newText);
60
61
        if (null !== $config) {
62
            $diff->setConfig($config);
63
        }
64
65
        return $diff;
66
    }
67
68
    /**
69
     * TableDiff constructor.