General cleanup and removal of all unnecessary references

This commit is contained in:
Alexander Liljengård
2016-05-24 16:31:21 +02:00
parent 519ad85fad
commit a65f2aa9f3
43 changed files with 366 additions and 386 deletions

View File

@ -5,7 +5,7 @@ class ScheduleStep extends Schedule
private $_factor;
private $_index;
public function __construct($name, Factor &$factor, $index)
public function __construct($name, Factor $factor, $index)
{
parent::__construct($name);
$this->_factor = $factor;
@ -14,7 +14,7 @@ class ScheduleStep extends Schedule
public function visit($depth = -1, $maxDepth = 0)
{
$currentFactor = &$this->_factor;
$currentFactor = $this->_factor;
$delta = $currentFactor->updateMessageIndex($this->_index);
return $delta;
}