Browse Source

CS fixes (mostly tab -> spaces)

pull/19/head
Aleksander Machniak 13 years ago
parent
commit
413df054ad
  1. 7
      program/include/clisetup.php
  2. 12
      program/include/html.php
  3. 3
      program/include/rcube_session.php

7
program/include/clisetup.php

@ -34,6 +34,7 @@ require_once INSTALL_PATH . 'program/include/iniset.php';
function get_opt($aliases = array())
{
$args = array();
for ($i=1; $i < count($_SERVER['argv']); $i++) {
$arg = $_SERVER['argv'][$i];
$value = true;
@ -52,12 +53,14 @@ function get_opt($aliases = array())
$args[$key] = is_string($value) ? preg_replace(array('/^["\']/', '/["\']$/'), '', $value) : $value;
}
else
else {
$args[] = $arg;
}
if ($alias = $aliases[$key])
if ($alias = $aliases[$key]) {
$args[$alias] = $args[$key];
}
}
return $args;
}

12
program/include/html.php

@ -705,8 +705,9 @@ class html_table extends html
*/
public function add_header($attr, $cont)
{
if (is_string($attr))
if (is_string($attr)) {
$attr = array('class' => $attr);
}
$cell = new stdClass;
$cell->attrib = $attr;
@ -763,11 +764,13 @@ class html_table extends html
*/
public function set_row_attribs($attr = array(), $index = null)
{
if (is_string($attr))
if (is_string($attr)) {
$attr = array('class' => $attr);
}
if ($index === null)
if ($index === null) {
$index = $this->rowindex;
}
$this->rows[$index]->attrib = $attr;
}
@ -781,8 +784,9 @@ class html_table extends html
*/
public function get_row_attribs($index = null)
{
if ($index === null)
if ($index === null) {
$index = $this->rowindex;
}
return $this->rows[$index] ? $this->rows[$index]->attrib : null;
}

3
program/include/rcube_session.php

@ -569,6 +569,7 @@ class rcube_session
$this->ip_check = $check;
}
/**
* Setter for the cookie name used for session cookie
*/
@ -637,7 +638,7 @@ class rcube_session
}
/**
*
* Writes debug information to the log
*/
function log($line)
{

Loading…
Cancel
Save