Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistChmodLinter.php
Context not available. | |||||
$line = head(phutil_split_lines($this->getEngine()->loadData($path), true)); | $line = head(phutil_split_lines($this->getEngine()->loadData($path), true)); | ||||
$matches = array(); | $matches = array(); | ||||
if (preg_match('/^#!(.*)$/', $line, $matches)) { | if (@preg_match('/^#!(.*)$/', $line, $matches)) { | ||||
return $matches[1]; | return $matches[1]; | ||||
} else { | } else { | ||||
return null; | return 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