mirror of
https://github.com/e107inc/e107.git
synced 2025-08-29 17:19:56 +02:00
PHPDoc fixes and code optimization.
This commit is contained in:
@@ -109,7 +109,7 @@ if (varset($e107_popup) != 1)
|
||||
// Format for display or logging
|
||||
$rendertime = number_format($clockTime, 2); // Clock time during page render
|
||||
$db_time = number_format($db_time, 2); // Clock time in DB render
|
||||
$dbPercent = number_format($dbPercent, 0); // DB as percent of clock
|
||||
$dbPercent = number_format($dbPercent); // DB as percent of clock
|
||||
$memuse = eHelper::getMemoryUsage(); // Memory at end, in B/KB/MB/GB ;)
|
||||
$rinfo = '';
|
||||
|
||||
@@ -135,7 +135,7 @@ if (varset($e107_popup) != 1)
|
||||
|
||||
$cpuStart = number_format($cpuStart, 3); // Startup time (i.e. CPU used before class2.php)
|
||||
$cpuTime = number_format($cpuTime, 3); // CPU while we were measuring the clock (cpuTot-cpuStart)
|
||||
$cpuPct = number_format($cpuPct, 0); // CPU Load (CPU/Clock)
|
||||
$cpuPct = number_format($cpuPct); // CPU Load (CPU/Clock)
|
||||
}
|
||||
//
|
||||
// Here's a good place to log CPU usage in case you want graphs and/or your host cares about that
|
||||
@@ -343,7 +343,7 @@ $tmp = array();
|
||||
|
||||
$magicSC = e107::getRender()->getMagicShortcodes(); // support for {---TITLE---} etc.
|
||||
|
||||
$tmp['search'] = array_keys($magicSC);
|
||||
$tmp['search'] = (array) array_keys($magicSC);
|
||||
$tmp['replace'] = array_values($magicSC);
|
||||
|
||||
$e_js = e107::getJs();
|
||||
|
@@ -470,10 +470,11 @@ class media_form_ui extends e_admin_form_ui
|
||||
|
||||
|
||||
/**
|
||||
* Resize a single image.
|
||||
* @param string
|
||||
* @param int
|
||||
* @param int
|
||||
* Resize a single image.
|
||||
* @param string $oldpath
|
||||
* @param int $w
|
||||
* @param int $h
|
||||
* @return bool|void
|
||||
*/
|
||||
public function resizeImage($oldpath,$w,$h)
|
||||
{
|
||||
|
@@ -556,7 +556,8 @@ class links_model_admin_tree extends e_admin_tree_model
|
||||
* @param $parent_id
|
||||
* @param $search
|
||||
* @param $src
|
||||
* @param $level
|
||||
* @param int $level
|
||||
* @param bool $modified
|
||||
* @return void
|
||||
*/
|
||||
function _tree_order($parent_id, $search, &$src, $level = 0, $modified = false)
|
||||
|
@@ -87,8 +87,9 @@ require_once(e_HANDLER.'mail_manager_class.php'); // Mail DB API
|
||||
|
||||
|
||||
/**
|
||||
* Display Progress-bar of real-time mail-out.
|
||||
* @return
|
||||
* Display Progress-bar of real-time mail-out.
|
||||
* @param $id
|
||||
* @return float
|
||||
*/
|
||||
function sendProgress($id)
|
||||
{
|
||||
|
@@ -608,6 +608,7 @@ class news_admin_ui extends e_admin_ui
|
||||
/**
|
||||
* Display a warning if there is a mismatch with the SEF Url.
|
||||
* @param $new_data
|
||||
* @return void|null
|
||||
*/
|
||||
private function checkSEFSimilarity($new_data)
|
||||
{
|
||||
|
@@ -411,10 +411,8 @@ class users_admin_ui extends e_admin_ui
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->fields['user_signature']['writeParms']['data'] = e107::getUserClass()->uc_required_class_list("classes");
|
||||
|
||||
$this->fields['user_signature'] = array('title' => LAN_USER_09, 'type' => 'textarea', 'data'=>'str', 'width' => 'auto', 'writeParms'=>array('size'=>'xxlarge'));
|
||||
// $this->fields['user_signature']['writeParms']['data'] = e107::getUserClass()->uc_required_class_list("classes");
|
||||
$this->fields['options'] = array('title'=> LAN_OPTIONS." ", 'type' => 'method', 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'right last', 'class' => 'left');
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user