Changeset View
Changeset View
Standalone View
Standalone View
src/applications/meta/query/PhabricatorApplicationQuery.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | if ($this->phids) { | ||||
$phids = array_fuse($this->phids); | $phids = array_fuse($this->phids); | ||||
foreach ($apps as $key => $app) { | foreach ($apps as $key => $app) { | ||||
if (empty($phids[$app->getPHID()])) { | if (empty($phids[$app->getPHID()])) { | ||||
unset($apps[$key]); | unset($apps[$key]); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (strlen($this->nameContains)) { | if ($this->nameContains !== null) { | ||||
foreach ($apps as $key => $app) { | foreach ($apps as $key => $app) { | ||||
if (stripos($app->getName(), $this->nameContains) === false) { | if (stripos($app->getName(), $this->nameContains) === false) { | ||||
unset($apps[$key]); | unset($apps[$key]); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if ($this->installed !== null) { | if ($this->installed !== null) { | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |