Changeset View
Changeset View
Standalone View
Standalone View
src/ref/build/ArcanistBuildRef.php
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | public function getStatusSortVector() { | ||||
// For now, just sort passed builds first. | // For now, just sort passed builds first. | ||||
if ($this->isPassed()) { | if ($this->isPassed()) { | ||||
$status_class = 1; | $status_class = 1; | ||||
} else { | } else { | ||||
$status_class = 2; | $status_class = 2; | ||||
} | } | ||||
return id(new PhutilSortVector()) | return (new PhutilSortVector()) | ||||
->addInt($status_class) | ->addInt($status_class) | ||||
->addString($status); | ->addString($status); | ||||
} | } | ||||
} | } |
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