From a8d3973c0005439abb16fc2444c79ba745cfd63f Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 26 Apr 2010 15:47:55 +0000 Subject: [PATCH] tablelib.php: Fix some minor whitespace errors that were messing up a merge I was doing. (Seemed better to fix core, rather than intentionally introduce whitespace errors into my code.) --- lib/tablelib.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/tablelib.php b/lib/tablelib.php index b69225ae805..7f0348cb616 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -52,7 +52,7 @@ class flexible_table { } /** - * Sets the is_sortable variable to the given boolean, sort_default_column to + * Sets the is_sortable variable to the given boolean, sort_default_column to * the given string, and the sort_default_order to the given integer. * @param bool $bool * @param string $defaultcolumn @@ -155,7 +155,7 @@ class flexible_table { /** * I think that what this method does is set the column so that if the same data appears in * consecutive rows, then it is not repeated. - * + * * For example, in the quiz overview report, the fullname column is set to be suppressed, so * that when one student has made multiple attempts, their name is only printed in the row * for their first attempt. @@ -211,10 +211,9 @@ class flexible_table { */ function define_baseurl($url) { $this->reseturl = $url; - if(!strpos($url, '?')) { + if (!strpos($url, '?')) { $this->baseurl = $url.'?'; - } - else { + } else { $this->baseurl = $url.'&'; } } @@ -424,7 +423,6 @@ class flexible_table { } else if (!in_array('flexible', explode(' ', $this->attributes['class']))) { $this->attributes['class'] = trim('flexible ' . $this->attributes['class']); } - } /** @@ -787,16 +785,15 @@ class flexible_table { } $this->data[] = NULL; } - + /** - * Add a row of data to the table. This function takes an array with - * column names as keys. + * Add a row of data to the table. This function takes an array with + * column names as keys. * It ignores any elements with keys that are not defined as columns. It * puts in empty strings into the row when there is no element in the passed * array corresponding to a column in the table. It puts the row elements in * the proper order. * @param $rowwithkeys array - * */ function add_data_keyed($rowwithkeys){ foreach (array_keys($this->columns) as $column){