Page MenuHomePhabricator

D9960.id23902.diff
No OneTemporary

D9960.id23902.diff

diff --git a/scripts/example/calculator.php b/scripts/example/calculator.php
--- a/scripts/example/calculator.php
+++ b/scripts/example/calculator.php
@@ -7,7 +7,7 @@
$args->setTagline('simple calculator example');
$args->setSynopsis(<<<EOHELP
**calculator.php** __op__ __n__ ...
-Perform a calculation.
+ Perform a calculation.
EOHELP
);
@@ -18,8 +18,8 @@
->setArguments(
array(
array(
- 'name' => 'numbers',
- 'wildcard' => true,
+ 'name' => 'numbers',
+ 'wildcard' => true,
),
));
@@ -30,8 +30,8 @@
->setArguments(
array(
array(
- 'name' => 'numbers',
- 'wildcard' => true,
+ 'name' => 'numbers',
+ 'wildcard' => true,
),
));
diff --git a/scripts/update_compat_info.php b/scripts/update_compat_info.php
--- a/scripts/update_compat_info.php
+++ b/scripts/update_compat_info.php
@@ -140,7 +140,7 @@
'time_sleep_until' => '5.3.0',
);
-file_put_contents(
+Filesystem::writeFile(
phutil_get_library_root('phutil').'/../'.$target,
id(new PhutilJSON())->encodeFormatted($output));
diff --git a/src/filesystem/Filesystem.php b/src/filesystem/Filesystem.php
--- a/src/filesystem/Filesystem.php
+++ b/src/filesystem/Filesystem.php
@@ -590,8 +590,11 @@
*
* @task directory
*/
- public static function createDirectory($path, $umask = 0755,
- $recursive = false) {
+ public static function createDirectory(
+ $path,
+ $umask = 0755,
+ $recursive = false) {
+
$path = self::resolvePath($path);
if (is_dir($path)) {

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 15, 9:20 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7696195
Default Alt Text
D9960.id23902.diff (1 KB)

Event Timeline