Fix tabbing
authorDemon <chadh@wikimedia.org>
Mon, 9 Apr 2012 23:05:10 +0000 (19:05 -0400)
committerDemon <chadh@wikimedia.org>
Mon, 9 Apr 2012 23:06:46 +0000 (19:06 -0400)
- As requested at <http://www.mediawiki.org/wiki/Special:Code/MediaWiki/114554>
- Also add some braces

Change-Id: I0c9cb7c50b9eb41f0a5cb6d2902e7b74cbe9d2bf

includes/diff/DairikiDiff.php

index 925003c..54a70bf 100644 (file)
@@ -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.