From 12efc09bfdb6171d1b9f5ae3e559cbdfe58fde90 Mon Sep 17 00:00:00 2001 From: Demon Date: Mon, 9 Apr 2012 19:05:10 -0400 Subject: [PATCH] Fix tabbing - As requested at - Also add some braces Change-Id: I0c9cb7c50b9eb41f0a5cb6d2902e7b74cbe9d2bf --- includes/diff/DairikiDiff.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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. -- 2.20.1