Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilEditorConfig.php
Context not available. | |||||
continue; | continue; | ||||
} | } | ||||
if (strpos($glob, '/') === false) { | if (@strpos($glob, '/') === false) { | ||||
$glob = '**/'.$glob; | $glob = '**/'.$glob; | ||||
} else if (strncmp($glob, '/', 0)) { | } else if (strncmp($glob, '/', 0)) { | ||||
$glob = substr($glob, 1); | $glob = @substr($glob, 1); | ||||
} | } | ||||
$glob = $path_prefix.'/'.$glob; | $glob = $path_prefix.'/'.$glob; | ||||
Context not available. | |||||
} | } | ||||
foreach ($properties as $property => $value) { | foreach ($properties as $property => $value) { | ||||
$property = strtolower($property); | $property = @strtolower($property); | ||||
if (!idx(self::$knownProperties, $property)) { | if (!idx(self::$knownProperties, $property)) { | ||||
// Unknown property... ignore it. | // Unknown property... ignore it. | ||||
Context not available. | |||||
} | } | ||||
if (is_string($value)) { | if (is_string($value)) { | ||||
$value = strtolower($value); | $value = @strtolower($value); | ||||
} | } | ||||
if ($value === '') { | if ($value === '') { | ||||
$value = null; | $value = 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