Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistCSSLintLinter.php
Context not available. | |||||
list($stdout) = execx('%C --version', $this->getExecutableCommand()); | list($stdout) = execx('%C --version', $this->getExecutableCommand()); | ||||
$matches = array(); | $matches = array(); | ||||
if (preg_match('/^v(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | if (@preg_match('/^v(?P<version>\d+\.\d+\.\d+)$/', $stdout, $matches)) { | ||||
return $matches['version']; | return $matches['version']; | ||||
} else { | } else { | ||||
return false; | return false; | ||||
Context not available. | |||||
if ($char === '') { | if ($char === '') { | ||||
$char = null; | $char = null; | ||||
} else { | } else { | ||||
$original_text = substr($original_text, $char - 1); | $original_text = @substr($original_text, $char - 1); | ||||
} | } | ||||
$message = id(new ArcanistLintMessage()) | $message = id(new ArcanistLintMessage()) | ||||
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