Differential D8361 Diff 19878 src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
| <?php | <?php | ||||
| final class PhabricatorDifferentialConfigOptions | final class PhabricatorDifferentialConfigOptions | ||||
| extends PhabricatorApplicationConfigOptions { | extends PhabricatorApplicationConfigOptions { | ||||
| public function getName() { | public function getName() { | ||||
| return pht('Differential'); | return pht('Differential'); | ||||
| } | } | ||||
| public function getDescription() { | public function getDescription() { | ||||
| return pht('Configure Differential code review.'); | return pht('Configure Differential code review.'); | ||||
| } | } | ||||
| public function getOptions() { | public function getOptions() { | ||||
| return array( | return array( | ||||
| $this->newOption( | $this->newOption( | ||||
| 'differential.revision-custom-detail-renderer', | |||||
| 'class', | |||||
| null) | |||||
| ->setBaseClass('DifferentialRevisionDetailRenderer') | |||||
| ->setDescription(pht("Custom revision detail renderer.")), | |||||
| $this->newOption( | |||||
| 'differential.whitespace-matters', | 'differential.whitespace-matters', | ||||
| 'list<regex>', | 'list<regex>', | ||||
| array( | array( | ||||
| '/\.py$/', | '/\.py$/', | ||||
| '/\.l?hs$/', | '/\.l?hs$/', | ||||
| )) | )) | ||||
| ->setDescription( | ->setDescription( | ||||
| pht( | pht( | ||||
| ▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines | |||||