Commit 7c71e1ae authored by Joshua Spence's avatar Joshua Spence
Browse files

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
parent d18f4eb3
This diff is collapsed.
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment