Differential D25106 Diff 449 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementRenamespaceWorkflow.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public function didExecute(PhutilArgumentParser $args) { | ||||
if (!strlen($input) && !$is_live) { | if (!strlen($input) && !$is_live) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Specify the dumpfile to read with "--input", or use "--live" to '. | 'Specify the dumpfile to read with "--input", or use "--live" to '. | ||||
'generate one automatically.')); | 'generate one automatically.')); | ||||
} | } | ||||
$from = $args->getArg('from'); | $from = $args->getArg('from'); | ||||
if (!strlen($from)) { | if (!phutil_nonempty_string($from)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Specify namespace to rename from with %s.', | 'Specify namespace to rename from with %s.', | ||||
'--from')); | '--from')); | ||||
} | } | ||||
$to = $args->getArg('to'); | $to = $args->getArg('to'); | ||||
if (!strlen($to)) { | if (!phutil_nonempty_string($to)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Specify namespace to rename to with %s.', | 'Specify namespace to rename to with %s.', | ||||
'--to')); | '--to')); | ||||
} | } | ||||
$output_file = $args->getArg('output'); | $output_file = $args->getArg('output'); | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0