- update code generated by PSR-2 standards fixer which introduced PHP 5.4 incompatibilities of 14.7.2013

This commit is contained in:
Uwe.Tews@googlemail.com
2013-07-15 18:18:28 +00:00
parent 00ccae8857
commit 584886cb1c
18 changed files with 80 additions and 77 deletions
+9 -9
View File
@@ -22,14 +22,14 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @var array
*/
static $template_data = array();
public static $template_data = array();
/**
* Start logging of compile time
*
* @param object $template
*/
static function start_compile($template)
public static function start_compile($template)
{
$key = self::get_key($template);
self::$template_data[$key]['start_time'] = microtime(true);
@@ -40,7 +40,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param object $template
*/
static function end_compile($template)
public static function end_compile($template)
{
$key = self::get_key($template);
self::$template_data[$key]['compile_time'] += microtime(true) - self::$template_data[$key]['start_time'];
@@ -51,7 +51,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param object $template
*/
static function start_render($template)
public static function start_render($template)
{
$key = self::get_key($template);
self::$template_data[$key]['start_time'] = microtime(true);
@@ -62,7 +62,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param object $template
*/
static function end_render($template)
public static function end_render($template)
{
$key = self::get_key($template);
self::$template_data[$key]['render_time'] += microtime(true) - self::$template_data[$key]['start_time'];
@@ -73,7 +73,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param object $template cached template
*/
static function start_cache($template)
public static function start_cache($template)
{
$key = self::get_key($template);
self::$template_data[$key]['start_time'] = microtime(true);
@@ -84,7 +84,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param object $template cached template
*/
static function end_cache($template)
public static function end_cache($template)
{
$key = self::get_key($template);
self::$template_data[$key]['cache_time'] += microtime(true) - self::$template_data[$key]['start_time'];
@@ -95,7 +95,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
*
* @param Smarty_Internal_Template|Smarty $obj object to debug
*/
static function display_debug($obj)
public static function display_debug($obj)
{
// prepare information of assigned variables
$ptr = self::get_debug_vars($obj);
@@ -141,7 +141,7 @@ class Smarty_Internal_Debug extends Smarty_Internal_Data
* @param Smarty_Internal_Template|Smarty_Data $obj object to debug
* @return StdClass
*/
static function get_debug_vars($obj)
public static function get_debug_vars($obj)
{
$config_vars = $obj->config_vars;
$tpl_vars = array();