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