Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistInspectWorkflow.php
Context not available. | |||||
foreach ($objects as $description) { | foreach ($objects as $description) { | ||||
$matches = null; | $matches = null; | ||||
$pattern = '/^([\w-]+)(?:\((.*)\))?\z/'; | $pattern = '/^([\w-]+)(?:\((.*)\))?\z/'; | ||||
if (!preg_match($pattern, $description, $matches)) { | if (!@preg_match($pattern, $description, $matches)) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht( | ||||
'Object specification "%s" is unknown, expected a specification '. | 'Object specification "%s" is unknown, expected a specification '. | ||||
Context not available. | |||||
$indent = str_repeat(' ', $depth); | $indent = str_repeat(' ', $depth); | ||||
if (is_string($value)) { | if (is_string($value)) { | ||||
$display_value = '"'.addcslashes(substr($value, 0, 64), "\n\r\t\\\"").'"'; | $display_value = '"'.addcslashes(@substr($value, 0, 64), "\n\r\t\\\"").'"'; | ||||
} else if (is_scalar($value)) { | } else if (is_scalar($value)) { | ||||
$display_value = phutil_string_cast($value); | $display_value = phutil_string_cast($value); | ||||
} else if ($value === null) { | } else if ($value === null) { | ||||
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