| @@ 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 | { |
|
| @@ 44-53 (lines=10) @@ | ||
| 41 | * |
|
| 42 | * @return ListDiffLines |
|
| 43 | */ |
|
| 44 | public static function create($oldText, $newText, HtmlDiffConfig $config = null) |
|
| 45 | { |
|
| 46 | $diff = new self($oldText, $newText); |
|
| 47 | ||
| 48 | if (null !== $config) { |
|
| 49 | $diff->setConfig($config); |
|
| 50 | } |
|
| 51 | ||
| 52 | return $diff; |
|
| 53 | } |
|
| 54 | ||
| 55 | /** |
|
| 56 | * {@inheritDoc} |
|
| @@ 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. |
|