Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/console/plugin/DarkConsoleRequestPlugin.php
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | public function renderPanel() { | ||||
$out = array(); | $out = array(); | ||||
foreach ($sections as $header => $map) { | foreach ($sections as $header => $map) { | ||||
$rows = array(); | $rows = array(); | ||||
foreach ($map as $key => $value) { | foreach ($map as $key => $value) { | ||||
if (isset($mask[$key])) { | if (isset($mask[$key])) { | ||||
$rows[] = array( | $rows[] = array( | ||||
$key, | $key, | ||||
phutil_tag('em', array(), '(Masked)')); | phutil_tag('em', array(), '(Masked)'), | ||||
); | |||||
} else { | } else { | ||||
$rows[] = array( | $rows[] = array( | ||||
$key, | $key, | ||||
(is_array($value) ? json_encode($value) : $value), | (is_array($value) ? json_encode($value) : $value), | ||||
); | ); | ||||
} | } | ||||
} | } | ||||
Show All 17 Lines |