@@ 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 |
@@ 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 | { |