various: code style

This commit is contained in:
Thomas Gelf 2016-03-20 16:38:00 +01:00
parent f77e9433d0
commit e30bafc62e
3 changed files with 10 additions and 5 deletions

View File

@ -942,7 +942,12 @@ abstract class DbObject
//return false; //return false;
$class = get_called_class(); $class = get_called_class();
if (! array_key_exists($class, self::$prefetchStats)) { if (! array_key_exists($class, self::$prefetchStats)) {
self::$prefetchStats[$class] = (object) array('miss' => 0, 'hits' => 0, 'hitNames' => 0, 'combinedMiss' => 0); self::$prefetchStats[$class] = (object) array(
'miss' => 0,
'hits' => 0,
'hitNames' => 0,
'combinedMiss' => 0
);
} }
if (is_array($key)) { if (is_array($key)) {