mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Use phutil_var_export
in CelerityManagementMapWorkflow
Summary: `phutil_var_export` produces more readable output than `var_export`. Depends on D9923. Test Plan: Eye-balled the Celerity map. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9926
This commit is contained in:
parent
d18f4eb39e
commit
7c71e1aefa
2 changed files with 200 additions and 401 deletions
File diff suppressed because it is too large
Load diff
|
@ -351,9 +351,7 @@ final class CelerityManagementMapWorkflow
|
|||
}
|
||||
|
||||
private function formatMapContent(array $data) {
|
||||
$content = var_export($data, true);
|
||||
$content = preg_replace('/\s+$/m', '', $content);
|
||||
$content = preg_replace('/array \(/', 'array(', $content);
|
||||
$content = phutil_var_export($data, true);
|
||||
|
||||
$generated = '@'.'generated';
|
||||
return <<<EOFILE
|
||||
|
|
Loading…
Reference in a new issue