Changeset View
Changeset View
Standalone View
Standalone View
src/view/widget/AphrontStackTraceView.php
| Show All 13 Lines | public function render() { | ||||
| $libraries = PhutilBootloader::getInstance()->getAllLibraries(); | $libraries = PhutilBootloader::getInstance()->getAllLibraries(); | ||||
| // TODO: Make this configurable? | // TODO: Make this configurable? | ||||
| $path = 'https://secure.phabricator.com/diffusion/%s/browse/master/src/'; | $path = 'https://secure.phabricator.com/diffusion/%s/browse/master/src/'; | ||||
| $callsigns = array( | $callsigns = array( | ||||
| 'arcanist' => 'ARC', | 'arcanist' => 'ARC', | ||||
| 'phutil' => 'PHU', | |||||
| 'phabricator' => 'P', | 'phabricator' => 'P', | ||||
| ); | ); | ||||
| $rows = array(); | $rows = array(); | ||||
| $depth = count($trace); | $depth = count($trace); | ||||
| foreach ($trace as $part) { | foreach ($trace as $part) { | ||||
| $lib = null; | $lib = null; | ||||
| $file = idx($part, 'file'); | $file = idx($part, 'file'); | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||