Differential D25031 Diff 83 src/applications/cache/management/PhabricatorCacheManagementPurgeWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/management/PhabricatorCacheManagementPurgeWorkflow.php
Context not available. | |||||
$is_all = $args->getArg('all'); | $is_all = $args->getArg('all'); | ||||
$key_list = $args->getArg('caches'); | $key_list = $args->getArg('caches'); | ||||
if ($is_all && strlen($key_list)) { | if ($is_all && @strlen($key_list)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Specify either "--all" or "--caches", not both.')); | 'Specify either "--all" or "--caches", not both.')); | ||||
} else if (!$is_all && !strlen($key_list)) { | } else if (!$is_all && !@strlen($key_list)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Select caches to purge with "--all" or "--caches". Available '. | 'Select caches to purge with "--all" or "--caches". Available '. | ||||
Context not available. |
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