Added Inventory interfaces and types, updated long array() to []

This commit is contained in:
Shoghi Cervantes
2014-05-22 18:59:16 +02:00
parent 0be679c9d5
commit 6cbd39de9b
102 changed files with 637 additions and 334 deletions

View File

@ -39,7 +39,7 @@ class CallbackTask extends Task{
* @param callable $callable
* @param array $args
*/
public function __construct(callable $callable, array $args = array()){
public function __construct(callable $callable, array $args = []){
$this->callable = $callable;
$this->args = $args;
$this->args[] = $this;

View File

@ -37,7 +37,7 @@ class ServerScheduler{
/**
* @var TaskHandler[]
*/
protected $tasks = array();
protected $tasks = [];
/** @var \Pool */
protected $asyncPool;
@ -134,7 +134,7 @@ class ServerScheduler{
foreach($this->tasks as $task){
$task->cancel();
}
$this->tasks = array();
$this->tasks = [];
$this->asyncPool->shutdown();
$this->asyncTasks = 0;
}