Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/response/AphrontWebpageResponse.php
Show All 15 Lines | final class AphrontWebpageResponse extends AphrontHTMLResponse { | ||||
} | } | ||||
public function getUnexpectedOutput() { | public function getUnexpectedOutput() { | ||||
return $this->unexpectedOutput; | return $this->unexpectedOutput; | ||||
} | } | ||||
public function buildResponseString() { | public function buildResponseString() { | ||||
$unexpected_output = $this->getUnexpectedOutput(); | $unexpected_output = $this->getUnexpectedOutput(); | ||||
if (strlen($unexpected_output)) { | if (phutil_nonempty_string($unexpected_output)) { | ||||
$style = array( | $style = array( | ||||
'background: linear-gradient(180deg, #eeddff, #ddbbff);', | 'background: linear-gradient(180deg, #eeddff, #ddbbff);', | ||||
'white-space: pre-wrap;', | 'white-space: pre-wrap;', | ||||
'z-index: 200000;', | 'z-index: 200000;', | ||||
'position: relative;', | 'position: relative;', | ||||
'padding: 16px;', | 'padding: 16px;', | ||||
'font-family: monospace;', | 'font-family: monospace;', | ||||
'text-shadow: 1px 1px 1px white;', | 'text-shadow: 1px 1px 1px white;', | ||||
Show All 16 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0