From: <var...@us...> - 2014-11-26 10:35:25
|
Revision: 9378 http://sourceforge.net/p/phpwiki/code/9378 Author: vargenau Date: 2014-11-26 10:35:23 +0000 (Wed, 26 Nov 2014) Log Message: ----------- Indent Modified Paths: -------------- trunk/lib/plugin/DebugAuthInfo.php Modified: trunk/lib/plugin/DebugAuthInfo.php =================================================================== --- trunk/lib/plugin/DebugAuthInfo.php 2014-11-25 17:13:29 UTC (rev 9377) +++ trunk/lib/plugin/DebugAuthInfo.php 2014-11-26 10:35:23 UTC (rev 9378) @@ -146,7 +146,8 @@ static $max_depth = 0; $rows = array(); $max_depth++; - if ($max_depth > 35) return $heading; + if ($max_depth > 35) + return $heading; if ($heading) $rows[] = HTML::tr(array( @@ -161,8 +162,13 @@ foreach ($hash as $key => $val) { if (is_object($val)) { $heading = "Object of " . get_class($val); - if ($depth > 3) $val = $heading; - elseif ($heading == "Object of wikidb_sql") $val = $heading; elseif (substr($heading, 0, 13) == "Object of db_") $val = $heading; elseif (!isset($seen[$heading])) { + if ($depth > 3) + $val = $heading; + elseif ($heading == "Object of wikidb_sql") + $val = $heading; + elseif (substr($heading, 0, 13) == "Object of db_") + $val = $heading; + elseif (!isset($seen[$heading])) { //if (empty($seen[$heading])) $seen[$heading] = 1; $val = HTML::table(array('class' => 'bordered'), $this->show_hash($heading, $this->obj2hash($val), $depth + 1)); @@ -171,7 +177,8 @@ } } elseif (is_array($val)) { $heading = $key . "[]"; - if ($depth > 3) $val = $heading; + if ($depth > 3) + $val = $heading; elseif (!isset($seen[$heading])) { //if (empty($seen[$heading])) $seen[$heading] = 1; $val = HTML::table(array('class' => 'bordered'), @@ -199,8 +206,10 @@ $hash = array(); foreach ($constants as $c) { $hash[$c] = defined($c) ? constant($c) : '<empty>'; - if ($hash[$c] === false) $hash[$c] = 'false'; - elseif ($hash[$c] === true) $hash[$c] = 'true'; + if ($hash[$c] === false) + $hash[$c] = 'false'; + elseif ($hash[$c] === true) + $hash[$c] = 'true'; } return $hash; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |