From: Demon Date: Mon, 9 Apr 2012 23:05:10 +0000 (-0400) Subject: Fix tabbing X-Git-Tag: 1.31.0-rc.0~22097^2^2~247^2~8^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=12efc09bfdb6171d1b9f5ae3e559cbdfe58fde90;p=lhc%2Fweb%2Fwiklou.git Fix tabbing - As requested at - Also add some braces Change-Id: I0c9cb7c50b9eb41f0a5cb6d2902e7b74cbe9d2bf --- diff --git a/includes/diff/DairikiDiff.php b/includes/diff/DairikiDiff.php index 925003c8e7..54a70bfc07 100644 --- a/includes/diff/DairikiDiff.php +++ b/includes/diff/DairikiDiff.php @@ -647,16 +647,18 @@ class Diff extends DiffResult { * @param $from_lines array An array of strings. * (Typically these are lines from a file.) * @param $to_lines array An array of strings. - * @param $eng _DiffEngine|null The diff engine to use. + * @param $eng _DiffEngine|null The diff engine to use. */ function __construct( $from_lines, $to_lines, $eng = null ) { - if ( !$eng ) $eng = new _DiffEngine(); + if ( !$eng ) { + $eng = new _DiffEngine(); + } $edits = $eng->diff( $from_lines, $to_lines ); - parent::__construct( $edits ); + parent::__construct( $edits ); - //$this->_check( $from_lines, $to_lines ); + //$this->_check( $from_lines, $to_lines ); } } @@ -668,14 +670,14 @@ class Diff extends DiffResult { */ class DiffResult { - /** - * Constructor. - * - * @param $edits array An array of Edit. - */ - function __construct( $edits ) { - $this->edits = $edits; - } + /** + * Constructor. + * + * @param $edits array An array of Edit. + */ + function __construct( $edits ) { + $this->edits = $edits; + } /** * Compute reversed Diff.