Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.)
  • Loading branch information...
commit a8d3973c0005439abb16fc2444c79ba745cfd63f 1 parent 996ef6c
@timhunt timhunt authored
Showing with 7 additions and 10 deletions.
  1. +7 −10 lib/tablelib.php
View
17 lib/tablelib.php
@@ -52,7 +52,7 @@ function flexible_table($uniqueid) {
}
/**
- * 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 @@ function set_attribute($attribute, $value) {
/**
* 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 @@ function column_style_all($property, $value) {
*/
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 @@ function setup() {
} else if (!in_array('flexible', explode(' ', $this->attributes['class']))) {
$this->attributes['class'] = trim('flexible ' . $this->attributes['class']);
}
-
}
/**
@@ -787,16 +785,15 @@ function add_separator() {
}
$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){
Please sign in to comment.
Something went wrong with that request. Please try again.