Skip to content

Commit

Permalink
#15343 - Refactor Support/Debug properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed May 1, 2021
1 parent 5bddc28 commit f866382
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions phalcon/Support/Debug.zep
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@ class Debug
{
/**
* @var array
*/
*/
protected blacklist = ["request" : [], "server" : []];

protected data;
/**
* @var array
*/
protected data = [];

/**
* @var bool
Expand All @@ -36,7 +39,7 @@ class Debug
/**
* @var bool
*/
protected static isActive;
protected static isActive = false;

/**
* @var bool
Expand All @@ -63,7 +66,7 @@ class Debug
*/
public function clearVars() -> <Debug>
{
let this->data = null;
let this->data = [];

return this;
}
Expand Down Expand Up @@ -306,7 +309,7 @@ class Debug
. "<li><a href='#error-tabs-4'>Included Files</a></li>"
. "<li><a href='#error-tabs-5'>Memory</a></li>";

if typeof dataVars == "array" {
if !empty dataVars {
let html .= "<li><a href='#error-tabs-6'>Variables</a></li>";
}

Expand Down Expand Up @@ -386,7 +389,7 @@ class Debug
/**
* Print extra variables passed to the component
*/
if typeof dataVars == "array" {
if !empty dataVars {
let html .= "<div id='error-tabs-6'>"
. "<table cellspacing='0' align='center' class='superglobal-detail'>"
. "<tr><th>Key</th><th>Value</th></tr>";
Expand Down

0 comments on commit f866382

Please sign in to comment.