Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistTasksWorkflow.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | public function run() { | ||||
$status = $this->getArgument('status'); | $status = $this->getArgument('status'); | ||||
$owner = $this->getArgument('owner'); | $owner = $this->getArgument('owner'); | ||||
$order = $this->getArgument('order'); | $order = $this->getArgument('order'); | ||||
$limit = $this->getArgument('limit'); | $limit = $this->getArgument('limit'); | ||||
$unassigned = $this->getArgument('unassigned'); | $unassigned = $this->getArgument('unassigned'); | ||||
if ($owner) { | if ($owner) { | ||||
$owner_phid = $this->findOwnerPhid($owner); | $owner_phid = $this->findOwnerPHID($owner); | ||||
} else if ($unassigned) { | } else if ($unassigned) { | ||||
$owner_phid = null; | $owner_phid = null; | ||||
} else { | } else { | ||||
$owner_phid = $this->getUserPHID(); | $owner_phid = $this->getUserPHID(); | ||||
} | } | ||||
$this->tasks = $this->loadManiphestTasks( | $this->tasks = $this->loadManiphestTasks( | ||||
($status == 'all' ? 'any' : $status), | ($status == 'all' ? 'any' : $status), | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |