Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13980378
D11085.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11085.diff
View Options
diff --git a/.arcconfig b/.arcconfig
--- a/.arcconfig
+++ b/.arcconfig
@@ -1,5 +1,5 @@
{
- "project.name" : "libphutil",
- "phabricator.uri" : "https://secure.phabricator.com/",
- "unit.engine" : "PhutilUnitTestEngine"
+ "project.name": "libphutil",
+ "phabricator.uri": "https://secure.phabricator.com/",
+ "unit.engine": "PhutilUnitTestEngine"
}
diff --git a/src/parser/PhutilJSON.php b/src/parser/PhutilJSON.php
--- a/src/parser/PhutilJSON.php
+++ b/src/parser/PhutilJSON.php
@@ -53,7 +53,7 @@
}
$key_lines = array();
foreach ($keys as $k => $key) {
- $key_lines[] = $key_pre.str_pad($key, $max).' : '.$vals[$k];
+ $key_lines[] = $key_pre.str_pad($key, $max).': '.$vals[$k];
}
$key_lines = implode(",\n", $key_lines);
diff --git a/src/parser/__tests__/PhutilJSONTestCase.php b/src/parser/__tests__/PhutilJSONTestCase.php
--- a/src/parser/__tests__/PhutilJSONTestCase.php
+++ b/src/parser/__tests__/PhutilJSONTestCase.php
@@ -7,7 +7,7 @@
$expect = <<<EOJSON
{
- "x" : []
+ "x": []
}
EOJSON;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 20, 10:17 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718619
Default Alt Text
D11085.diff (1 KB)
Attached To
Mode
D11085: Consolidate JSON formatting
Attached
Detach File
Event Timeline
Log In to Comment