| Total Complexity | 6 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Text_Diff_Renderer_unified extends Text_Diff_Renderer |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Number of leading context "lines" to preserve. |
||
| 18 | */ |
||
| 19 | public $_leading_context_lines = 4; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Number of trailing context "lines" to preserve. |
||
| 23 | */ |
||
| 24 | public $_trailing_context_lines = 4; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param $xbeg |
||
| 28 | * @param $xlen |
||
| 29 | * @param $ybeg |
||
| 30 | * @param $ylen |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function _blockHeader($xbeg, $xlen, $ybeg, $ylen) |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param $lines |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function _added($lines) |
||
| 50 | { |
||
| 51 | return $this->_lines($lines, '+'); |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param $lines |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function _deleted($lines) |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param $orig |
||
| 65 | * @param $final |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function _changed($orig, $final) |
||
| 71 | } |
||
| 72 | } |
||
| 73 |