X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FUnifiedDiffFormatter.php;h=32a76055ee4a7a4f356660b93a0239037bb10f01;hb=86b2bcc97577b79b6977b5fa3c3ec19c9312dc99;hp=d489538b852bbe32a3306bf9db689fcc5834ed7b;hpb=29b86059736b251162e3ecad21f2f4a2d1bc0bbc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/UnifiedDiffFormatter.php b/includes/diff/UnifiedDiffFormatter.php index d489538b85..32a76055ee 100644 --- a/includes/diff/UnifiedDiffFormatter.php +++ b/includes/diff/UnifiedDiffFormatter.php @@ -29,26 +29,30 @@ * @ingroup DifferenceEngine */ class UnifiedDiffFormatter extends DiffFormatter { + + /** @var int */ protected $leadingContextLines = 2; + + /** @var int */ protected $trailingContextLines = 2; /** - * @param $lines + * @param string[] $lines */ protected function added( $lines ) { $this->lines( $lines, '+' ); } /** - * @param $lines + * @param string[] $lines */ protected function deleted( $lines ) { $this->lines( $lines, '-' ); } /** - * @param $orig - * @param $closing + * @param string[] $orig + * @param string[] $closing */ protected function changed( $orig, $closing ) { $this->deleted( $orig ); @@ -56,13 +60,15 @@ class UnifiedDiffFormatter extends DiffFormatter { } /** - * @param $xbeg - * @param $xlen - * @param $ybeg - * @param $ylen + * @param int $xbeg + * @param int $xlen + * @param int $ybeg + * @param int $ylen + * * @return string */ protected function blockHeader( $xbeg, $xlen, $ybeg, $ylen ) { return "@@ -$xbeg,$xlen +$ybeg,$ylen @@"; } + }