Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/query/PhabricatorRepositoryQuery.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | final class PhabricatorRepositoryQuery | ||||
} | } | ||||
public function withCallsigns(array $callsigns) { | public function withCallsigns(array $callsigns) { | ||||
$this->callsigns = $callsigns; | $this->callsigns = $callsigns; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function withIdentifiers(array $identifiers) { | public function withIdentifiers(array $identifiers) { | ||||
$identifiers = array_fuse($identifiers); | |||||
$ids = array(); | $ids = array(); | ||||
$callsigns = array(); | $callsigns = array(); | ||||
$phids = array(); | $phids = array(); | ||||
$monograms = array(); | $monograms = array(); | ||||
foreach ($identifiers as $identifier) { | foreach ($identifiers as $identifier) { | ||||
if (ctype_digit((string)$identifier)) { | if (ctype_digit((string)$identifier)) { | ||||
$ids[$identifier] = $identifier; | $ids[$identifier] = $identifier; | ||||
▲ Show 20 Lines • Show All 537 Lines • Show Last 20 Lines |