summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class3
-rw-r--r--it_debug.class3
-rw-r--r--it_text.class3
-rw-r--r--it_url.class4
4 files changed, 9 insertions, 4 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 4389689..6525c23 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -335,7 +335,8 @@ function _values($tags, $force = false)
{
if (is_int($k)) /* no key specified; just append */
$append[] = $v;
- else {
+ else
+ {
$keys[] = $this->escape_name($k);
$vals[] = $v;
}
diff --git a/it_debug.class b/it_debug.class
index 8eb253e..3668715 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -143,7 +143,8 @@ static function dump($args)
if (preg_match('/^[\'"]/', $var))
$r .= "$item ";
- else {
+ else
+ {
$var = "$blue$var=$noblue";
$r .= $previtem && preg_match("/\n/", $item . $previtem) ? "\n$var$item " : "$var$item ";
$previtem = $item;
diff --git a/it_text.class b/it_text.class
index f575344..9c5b401 100644
--- a/it_text.class
+++ b/it_text.class
@@ -241,7 +241,8 @@ static function transmogrify($text, $values = null, $label = null, $allowedfuncs
if ($value === null && $values && $label) # do not test in $GLOBALS mode
it::error(array('title' => "No value given for text variable {" . $key ."} in label $label", 'backtraceskip' => 3));
}
- } else
+ }
+ else
$value = (list($func, $arg) = it::match('^([\w:]+)\((.*)\)$', $part)) && isset($allowedfuncs[$func]) ? call_user_func($func, $arg) : "{" . $part . "}";
$result .= $GLOBALS['debug_texts'] ? "</span>$value<span style='background:#8F8'>" : $value;
diff --git a/it_url.class b/it_url.class
index f4dc05f..bd60ffc 100644
--- a/it_url.class
+++ b/it_url.class
@@ -319,7 +319,9 @@ function request($p=array())
$result =& $url->data;
$this->errstr = "HTTP Status " . $url->result;
}
- } else {
+ }
+ else
+ {
$result = $this->result = false;
$this->errstr = trim("(" . curl_errno($curl) . ") " . curl_error($curl));
$this->curlinfo = curl_getinfo($curl);