mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-05-05 22:15:27 +02:00
Repleace deprecated curved brackets (#607)
This commit is contained in:
parent
9a34c57d8f
commit
a38f509ee1
@ -37,7 +37,7 @@ $arOptions = array();
|
||||
$arArgs = array();
|
||||
array_shift($argv);//script itself
|
||||
foreach ($argv as $arg) {
|
||||
if ($arg{0} == '-') {
|
||||
if ($arg[0] == '-') {
|
||||
$arOptions[$arg] = true;
|
||||
} else {
|
||||
$arArgs[] = $arg;
|
||||
@ -95,7 +95,7 @@ function getUrlFromPath($path)
|
||||
//already an URL
|
||||
return $path;
|
||||
}
|
||||
if ($path{0} == '/') {
|
||||
if ($path[0] == '/') {
|
||||
//absolute path
|
||||
return 'file://' . $path;
|
||||
}
|
||||
@ -200,7 +200,7 @@ if ($pathSchema === null) {
|
||||
exit(6);
|
||||
}
|
||||
}
|
||||
if ($pathSchema{0} == '/') {
|
||||
if ($pathSchema[0] == '/') {
|
||||
$pathSchema = 'file://' . $pathSchema;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user