Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistLowercaseFunctionsXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistLowercaseFunctionsXHPASTLinterRule.php
Context not available. | |||||
$function_name = $function->getConcreteString(); | $function_name = $function->getConcreteString(); | ||||
if (!idx($builtin_functions, strtolower($function_name))) { | if (!idx($builtin_functions, @strtolower($function_name))) { | ||||
continue; | continue; | ||||
} | } | ||||
if ($function_name != strtolower($function_name)) { | if ($function_name != @strtolower($function_name)) { | ||||
$this->raiseLintAtNode( | $this->raiseLintAtNode( | ||||
$function, | $function, | ||||
pht('Calls to built-in PHP functions should be lowercase.'), | pht('Calls to built-in PHP functions should be lowercase.'), | ||||
strtolower($function_name)); | @strtolower($function_name)); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
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