Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialHunk.php
Show First 20 Lines • Show All 326 Lines • ▼ Show 20 Lines | public function saveAsFile() { | ||||
$old_type = $this->getDataType(); | $old_type = $this->getDataType(); | ||||
$old_data = $this->getData(); | $old_data = $this->getData(); | ||||
$raw_data = $this->getRawData(); | $raw_data = $this->getRawData(); | ||||
list($format, $data) = $this->formatDataForStorage($raw_data); | list($format, $data) = $this->formatDataForStorage($raw_data); | ||||
$this->setDataFormat($format); | $this->setDataFormat($format); | ||||
// TODO | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
$file = PhabricatorFile::newFromFileData( | $file = PhabricatorFile::newFromFileData( | ||||
$data, | $data, | ||||
array( | array( | ||||
'name' => 'differential-hunk', | 'name' => 'differential-hunk', | ||||
'mime-type' => 'application/octet-stream', | 'mime-type' => 'application/octet-stream', | ||||
'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | ||||
)); | )); | ||||
▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines |
This comment has a TODO.