summaryrefslogtreecommitdiffstats
path: root/system/libraries/Table.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Table.php')
-rw-r--r--system/libraries/Table.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php
index 439fe2ef9..38affa579 100644
--- a/system/libraries/Table.php
+++ b/system/libraries/Table.php
@@ -53,7 +53,7 @@ class CI_Table {
*/
function set_template($template)
{
- if ( ! is_array($template))
+ if (! is_array($template))
{
return FALSE;
}
@@ -93,7 +93,7 @@ class CI_Table {
*/
function make_columns($array = array(), $col_limit = 0)
{
- if ( ! is_array($array) OR count($array) == 0)
+ if (! is_array($array) OR count($array) == 0)
{
return FALSE;
}
@@ -187,7 +187,7 @@ class CI_Table {
{
// The table data can optionally be passed to this function
// either as a database result object or an array
- if ( ! is_null($table_data))
+ if (! is_null($table_data))
{
if (is_object($table_data))
{
@@ -246,7 +246,7 @@ class CI_Table {
$i = 1;
foreach($this->rows as $row)
{
- if ( ! is_array($row))
+ if (! is_array($row))
{
break;
}
@@ -309,7 +309,7 @@ class CI_Table {
*/
function _set_from_object($query)
{
- if ( ! is_object($query))
+ if (! is_object($query))
{
return FALSE;
}
@@ -317,7 +317,7 @@ class CI_Table {
// First generate the headings from the table column names
if (count($this->heading) == 0)
{
- if ( ! method_exists($query, 'list_fields'))
+ if (! method_exists($query, 'list_fields'))
{
return FALSE;
}
@@ -347,7 +347,7 @@ class CI_Table {
*/
function _set_from_array($data, $set_heading = TRUE)
{
- if ( ! is_array($data) OR count($data) == 0)
+ if (! is_array($data) OR count($data) == 0)
{
return FALSE;
}
@@ -355,7 +355,7 @@ class CI_Table {
$i = 0;
foreach ($data as $row)
{
- if ( ! is_array($row))
+ if (! is_array($row))
{
$this->rows[] = $data;
break;
@@ -394,7 +394,7 @@ class CI_Table {
$this->temp = $this->_default_template();
foreach (array('table_open','heading_row_start', 'heading_row_end', 'heading_cell_start', 'heading_cell_end', 'row_start', 'row_end', 'cell_start', 'cell_end', 'row_alt_start', 'row_alt_end', 'cell_alt_start', 'cell_alt_end', 'table_close') as $val)
{
- if ( ! isset($this->template[$val]))
+ if (! isset($this->template[$val]))
{
$this->template[$val] = $this->temp[$val];
}