Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/transform/PhabricatorFileImageTransform.php
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | protected function newFileFromData($data) { | ||||
$defaults = array( | $defaults = array( | ||||
'canCDN' => true, | 'canCDN' => true, | ||||
'name' => $this->getTransformKey().'-'.$name, | 'name' => $this->getTransformKey().'-'.$name, | ||||
); | ); | ||||
$properties = $this->getFileProperties() + $defaults; | $properties = $this->getFileProperties() + $defaults; | ||||
// TODO | |||||
Lint: TODO Comment: This comment has a TODO. | |||||
return PhabricatorFile::newFromFileData($data, $properties); | return PhabricatorFile::newFromFileData($data, $properties); | ||||
} | } | ||||
/** | /** | ||||
* Create a new image filled with transparent pixels. | * Create a new image filled with transparent pixels. | ||||
* | * | ||||
* @param int Desired image width. | * @param int Desired image width. | ||||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |
This comment has a TODO.