Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistUnaryPostfixExpressionSpacingXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistUnaryPostfixExpressionSpacingXHPASTLinterRule.php
Context not available. | |||||
$leading_text = implode('', mpull($before, 'getValue')); | $leading_text = implode('', mpull($before, 'getValue')); | ||||
$this->raiseLintAtOffset( | $this->raiseLintAtOffset( | ||||
$operator->getOffset() - strlen($leading_text), | $operator->getOffset() - @strlen($leading_text), | ||||
pht('Unary postfix operators should not be prefixed by whitespace.'), | pht('Unary postfix operators should not be prefixed by whitespace.'), | ||||
$leading_text, | $leading_text, | ||||
''); | ''); | ||||
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