* Constructor.
* Computes diff between sequences of strings.
*
- * @param $from_lines array An array of strings.
- * (Typically these are lines from a file.)
- * @param $to_lines array An array of strings.
+ * @param array $from_lines
+ * An array of strings.
+ * (Typically these are lines from a file.)
+ * @param array $to_lines
+ * An array of strings.
*/
public function __construct($from_lines, $to_lines) {
$eng = new DiffEngine();
*
* $diff = new Diff($lines1, $lines2);
* $rev = $diff->reverse();
- * @return object A Diff object representing the inverse of the
- * original diff.
+ * @return object
+ * A Diff object representing the inverse of the original diff.
*/
public function reverse() {
$rev = $this;
trigger_error("Reversed closing doesn't match", E_USER_ERROR);
}
-
$prevtype = 'none';
foreach ($this->edits as $edit) {
if ( $prevtype == $edit->type ) {