diff --git a/classes/bookmarks.class.php b/classes/bookmarks.class.php index e30565b1..18b23cc4 100644 --- a/classes/bookmarks.class.php +++ b/classes/bookmarks.class.php @@ -83,7 +83,7 @@ public static function all_bookmarks($Type, $UserID = false) { $UserID = $LoggedUser['ID']; } $CacheKey = 'bookmarks_' . $Type . '_' . $UserID; - if (($Bookmarks = $Cache->get_value($CacheKey)) === FALSE) { + if (($Bookmarks = $Cache->get_value($CacheKey)) === false) { list ($Table, $Col) = self::bookmark_schema($Type); $DB->query("SELECT $Col FROM $Table WHERE UserID = '$UserID'"); $Bookmarks = $DB->collect($Col); diff --git a/classes/class_debug.php b/classes/class_debug.php index 568422b9..93d41a0a 100644 --- a/classes/class_debug.php +++ b/classes/class_debug.php @@ -91,10 +91,10 @@ public function get_cpu_time() { return false; } - public function log_var($Var, $VarName = FALSE) { + public function log_var($Var, $VarName = false) { $BackTrace = debug_backtrace(); $ID = uniqid(); - if(!$VarName) { + if (!$VarName) { $VarName = $ID; } $File = array('path' => substr($BackTrace[0]['file'], strlen(SERVER_ROOT)), 'line' => $BackTrace[0]['line']); @@ -103,7 +103,7 @@ public function log_var($Var, $VarName = FALSE) { public function set_flag($Event) { global $ScriptStartTime; - $this->Flags[] = array($Event, (microtime(true)-$ScriptStartTime)*1000, memory_get_usage(true), $this->get_cpu_time()); + $this->Flags[] = array($Event, (microtime(true) - $ScriptStartTime) * 1000, memory_get_usage(true), $this->get_cpu_time()); } //This isn't in the constructor because $this is not available, and the function cannot be made static @@ -118,7 +118,7 @@ protected function format_args($Array) { $Return = array(); foreach ($Array as $Key => $Val) { $Return[$Key] = ''; - if (!is_int($Key) || $Key != $LastKey+1) { + if (!is_int($Key) || $Key != $LastKey + 1) { $Return[$Key] .= "'$Key' => "; } if ($Val === true) { @@ -194,7 +194,7 @@ public function php_error_handler($Level, $Error, $File, $Line) { /* //Hiding "session_start(): Server 10.10.0.1 (tcp 11211) failed with: No route to host (113)" errors - if($Call != "session_start") { + if ($Call != "session_start") { $this->Errors[] = array($Error, $File.':'.$Line, $Call, $Args); } */ @@ -277,13 +277,13 @@ public function get_sphinx_time() { } public function get_sphinxql_queries() { - if(class_exists('Sphinxql')) { + if (class_exists('Sphinxql')) { return Sphinxql::$Queries; } } public function get_sphinxql_time() { - if(class_exists('Sphinxql')) { + if (class_exists('Sphinxql')) { return Sphinxql::$Time; } } @@ -314,7 +314,7 @@ public function perf_table($Perf=false) { ?> - +
(View) Performance stats:View Performance stats:
@@ -339,7 +339,7 @@ public function include_table($Includes=false) { ?> - +
(View) Includes:View Includes:
@@ -363,7 +363,7 @@ public function class_table($Classes=false) { ?> - +
(View) Classes:View Classes:
@@ -380,7 +380,7 @@ public function extension_table() { ?> - +
(View) Extensions:View Extensions:
@@ -403,7 +403,7 @@ public function flag_table($Flags=false) { ?> - +
(View) Flags:View Flags:
@@ -441,7 +441,7 @@ public function constant_table($Constants=false) { ?> - +
(View) Constants:View Constants:
@@ -469,11 +469,11 @@ public function cache_table($CacheKeys=false) { ?> - +
(View)View
- +