1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 12:52:42 +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:
Joshua Spence 2014-07-15 01:33:33 +10:00
parent d18f4eb39e
commit 7c71e1aefa
2 changed files with 200 additions and 401 deletions

File diff suppressed because it is too large Load diff

View file

@ -351,9 +351,7 @@ final class CelerityManagementMapWorkflow
} }
private function formatMapContent(array $data) { private function formatMapContent(array $data) {
$content = var_export($data, true); $content = phutil_var_export($data, true);
$content = preg_replace('/\s+$/m', '', $content);
$content = preg_replace('/array \(/', 'array(', $content);
$generated = '@'.'generated'; $generated = '@'.'generated';
return <<<EOFILE return <<<EOFILE