Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/PhabricatorMarkupEngine.php
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | public function process() { | ||||
$keys = array(); | $keys = array(); | ||||
foreach ($this->objects as $key => $info) { | foreach ($this->objects as $key => $info) { | ||||
if (!isset($info['markup'])) { | if (!isset($info['markup'])) { | ||||
$keys[] = $key; | $keys[] = $key; | ||||
} | } | ||||
} | } | ||||
if (!$keys) { | if (!$keys) { | ||||
return; | return $this; | ||||
} | } | ||||
$objects = array_select_keys($this->objects, $keys); | $objects = array_select_keys($this->objects, $keys); | ||||
// Build all the markup engines. We need an engine for each field whether | // Build all the markup engines. We need an engine for each field whether | ||||
// we have a cache or not, since we still need to postprocess the cache. | // we have a cache or not, since we still need to postprocess the cache. | ||||
$engines = array(); | $engines = array(); | ||||
foreach ($objects as $key => $info) { | foreach ($objects as $key => $info) { | ||||
▲ Show 20 Lines • Show All 575 Lines • Show Last 20 Lines |