Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistWorkflow.php
Show First 20 Lines • Show All 2,030 Lines • ▼ Show 20 Lines | /* -( Phabricator Repositories )------------------------------------------- */ | ||||
protected function getModernLintDictionary(array $map) { | protected function getModernLintDictionary(array $map) { | ||||
$map = $this->getModernCommonDictionary($map); | $map = $this->getModernCommonDictionary($map); | ||||
return $map; | return $map; | ||||
} | } | ||||
protected function getModernUnitDictionary(array $map) { | protected function getModernUnitDictionary(array $map) { | ||||
$map = $this->getModernCommonDictionary($map); | $map = $this->getModernCommonDictionary($map); | ||||
$details = idx($map, 'userData'); | |||||
if (strlen($details)) { | |||||
$map['details'] = (string)$details; | |||||
} | |||||
unset($map['userData']); | |||||
return $map; | return $map; | ||||
} | } | ||||
private function getModernCommonDictionary(array $map) { | private function getModernCommonDictionary(array $map) { | ||||
foreach ($map as $key => $value) { | foreach ($map as $key => $value) { | ||||
if ($value === null) { | if ($value === null) { | ||||
unset($map[$key]); | unset($map[$key]); | ||||
} | } | ||||
} | } | ||||
return $map; | return $map; | ||||
} | } | ||||
} | } |