Differential D25030 Diff 82 src/lint/linter/xhpast/rules/ArcanistParenthesesSpacingXHPASTLinterRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/ArcanistParenthesesSpacingXHPASTLinterRule.php
Context not available. | |||||
$raise = array(); | $raise = array(); | ||||
$string_o = implode('', mpull($nonsem_o, 'getValue')); | $string_o = implode('', mpull($nonsem_o, 'getValue')); | ||||
if (preg_match('/^[ ]+$/', $string_o)) { | if (@preg_match('/^[ ]+$/', $string_o)) { | ||||
$raise[] = array($nonsem_o, $string_o); | $raise[] = array($nonsem_o, $string_o); | ||||
} | } | ||||
if ($nonsem_o !== $nonsem_c) { | if ($nonsem_o !== $nonsem_c) { | ||||
$string_c = implode('', mpull($nonsem_c, 'getValue')); | $string_c = implode('', mpull($nonsem_c, 'getValue')); | ||||
if (preg_match('/^[ ]+$/', $string_c)) { | if (@preg_match('/^[ ]+$/', $string_c)) { | ||||
$raise[] = array($nonsem_c, $string_c); | $raise[] = array($nonsem_c, $string_c); | ||||
} | } | ||||
} | } | ||||
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