@@ 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 |
@@ 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 | { |
@@ 63-72 (lines=10) @@ | ||
60 | * |
|
61 | * @return self |
|
62 | */ |
|
63 | public static function create($oldText, $newText, HtmlDiffConfig $config = null) |
|
64 | { |
|
65 | $diff = new self($oldText, $newText); |
|
66 | ||
67 | if (null !== $config) { |
|
68 | $diff->setConfig($config); |
|
69 | } |
|
70 | ||
71 | return $diff; |
|
72 | } |
|
73 | ||
74 | /** |
|
75 | * TableDiff constructor. |