Differential D25241 Diff 873 src/applications/diffusion/controller/DiffusionBranchTableController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionBranchTableController.php
Show All 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$params = array( | $params = array( | ||||
'offset' => $pager->getOffset(), | 'offset' => $pager->getOffset(), | ||||
'limit' => $pager->getPageSize() + 1, | 'limit' => $pager->getPageSize() + 1, | ||||
'branch' => null, | 'branch' => null, | ||||
); | ); | ||||
$contains = $drequest->getSymbolicCommit(); | $contains = $drequest->getSymbolicCommit(); | ||||
if (strlen($contains)) { | if (phutil_nonempty_string($contains)) { | ||||
valerio.bozzolan: ✅ The variable must be null or a string
```lang=php
/**
* Get the symbolic commit… | |||||
$params['contains'] = $contains; | $params['contains'] = $contains; | ||||
} | } | ||||
$branches = $this->callConduitWithDiffusionRequest( | $branches = $this->callConduitWithDiffusionRequest( | ||||
'diffusion.branchquery', | 'diffusion.branchquery', | ||||
$params); | $params); | ||||
$branches = $pager->sliceResults($branches); | $branches = $pager->sliceResults($branches); | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 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
✅ The variable must be null or a string