Replaced array() with []

This commit is contained in:
Shoghi Cervantes
2014-08-28 17:04:22 +02:00
parent 2f2afe2336
commit eab86f5f90
122 changed files with 535 additions and 533 deletions

View File

@@ -63,7 +63,7 @@ class PluginDescription{
$this->name = str_replace(" ", "_", $this->name);
$this->version = $plugin["version"];
$this->main = $plugin["main"];
$this->api = !is_array($plugin["api"]) ? array($plugin["api"]) : $plugin["api"];
$this->api = !is_array($plugin["api"]) ? [$plugin["api"]] : $plugin["api"];
if(stripos($this->main, "pocketmine\\") === 0){
trigger_error("Invalid PluginDescription main, cannot start within the PocketMine namespace", E_USER_ERROR);

View File

@@ -242,7 +242,7 @@ class PluginManager{
if(isset($softDependencies[$before])){
$softDependencies[$before][] = $name;
}else{
$softDependencies[$before] = array($name);
$softDependencies[$before] = [$name];
}
}
}