mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 20:28:31 +00:00
PocketMine.php: avoid use of short ternary
This commit is contained in:
parent
889cd5e206
commit
e689fd545b
@ -173,7 +173,7 @@ namespace pocketmine {
|
|||||||
|
|
||||||
$opts = getopt("", ["bootstrap:"]);
|
$opts = getopt("", ["bootstrap:"]);
|
||||||
if(isset($opts["bootstrap"])){
|
if(isset($opts["bootstrap"])){
|
||||||
$bootstrap = realpath($opts["bootstrap"]) ?: $opts["bootstrap"];
|
$bootstrap = ($real = realpath($opts["bootstrap"])) !== false ? $real : $opts["bootstrap"];
|
||||||
}else{
|
}else{
|
||||||
$bootstrap = dirname(__FILE__, 3) . '/vendor/autoload.php';
|
$bootstrap = dirname(__FILE__, 3) . '/vendor/autoload.php';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user