Inspector cleanup

This commit is contained in:
Nathan Adams
2015-10-15 21:24:05 -05:00
parent e130ec13e2
commit 0b6fa7c64d
13 changed files with 13 additions and 16 deletions

View File

@@ -195,7 +195,7 @@ class Pluf_DB_MySQL
function __toString()
{
return '<Pluf_DB_MySQL('.$this->con_id.')>';
return '<Pluf_DB_MySQL('.$this->con_id->info.')>';
}
}

View File

@@ -163,7 +163,8 @@ class Pluf_DB_SQLite
function __toString()
{
return '<Pluf_DB_SQLite('.$this->con_id.')>';
// According to PHPStorm \PDO does not define __toString
return '<Pluf_DB_SQLite()>';
}
}

View File

@@ -56,7 +56,7 @@ class Pluf_Form_Field_Datetime extends Pluf_Form_Field
str_pad($day, 2, '0', STR_PAD_LEFT).' '.
str_pad($date['tm_hour'], 2, '0', STR_PAD_LEFT).':'.
str_pad($date['tm_min'], 2, '0', STR_PAD_LEFT).':';
str_pad($date['tm_sec'], 2, '0', STD_PAD_LEFT);
str_pad($date['tm_sec'], 2, '0', STR_PAD_LEFT);
// we internally use GMT, so we convert it to a GMT date.
return gmdate('Y-m-d H:i:s', strtotime($date));

View File

@@ -65,7 +65,7 @@ class Pluf_Form_Widget_SelectMultipleInput_Checkbox extends Pluf_Form_Widget_Sel
public function idForLabel($id)
{
if ($id) {
$id += '_0';
$id .= '_0';
}
return $id;
}

View File

@@ -147,7 +147,7 @@ class Pluf_Log
*/
public static function log($message)
{
return self::_log(self::ALL, $message);
self::_log(self::ALL, $message);
}
/**

View File

@@ -42,7 +42,7 @@ class Pluf_Middleware_GoogleAnalytics
{
if (isset($response) && !isset($response->status_code))
return $response;
if (!Pluf::f('google_analytics_id', false)) {
return $response;
}

View File

@@ -153,7 +153,6 @@ public static function render($c) {$t = $c; ?>'.$this->template_content.'<?php }
} else {
throw new Exception(sprintf(__('Cannot write the compiled template: %s'), $this->compiled_template));
}
return false;
}
public static function markSafe($string)

View File

@@ -3335,4 +3335,3 @@ negligence or otherwise) arising in any way out of the use of this
software, even if advised of the possibility of such damage.
*/
?>

View File

@@ -402,7 +402,7 @@ class Pluf_Translation_TemplateExtractor
$result.=$tok;
} elseif ($tok ==']') {
$result.=$tok;
} elseif ($getAsArray && $tok == ',') {
} elseif ($tok == ',') { // $getAsArray not defined anywhere...
$results[]=$result;
$result='';
} else {

View File

@@ -142,5 +142,4 @@ class ccurl {
public function __tostring(){
return $this->_webpage;
}
}
?>
}