Differential D18396 Diff 44238 src/applications/differential/conduit/DifferentialQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | if ($commit_hashes) { | ||||
| empty($hash)) { | empty($hash)) { | ||||
| throw new ConduitException('ERR-INVALID-PARAMETER'); | throw new ConduitException('ERR-INVALID-PARAMETER'); | ||||
| } | } | ||||
| } | } | ||||
| $query->withCommitHashes($commit_hashes); | $query->withCommitHashes($commit_hashes); | ||||
| } | } | ||||
| if ($status) { | if ($status) { | ||||
| $query->withStatus($status); | $statuses = DifferentialLegacyQuery::getModernValues($status); | ||||
| if ($statuses) { | |||||
| $query->withStatuses($statuses); | |||||
| } | |||||
| } | } | ||||
| if ($order) { | if ($order) { | ||||
| $query->setOrder($order); | $query->setOrder($order); | ||||
| } | } | ||||
| if ($limit) { | if ($limit) { | ||||
| $query->setLimit($limit); | $query->setLimit($limit); | ||||
| } | } | ||||
| if ($offset) { | if ($offset) { | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||