Bug fixes

This commit is contained in:
Dennis Eichhorn 2016-09-27 17:57:36 +02:00
parent 0491883aad
commit 1222d53dbc
2 changed files with 3 additions and 2 deletions

View File

@ -894,7 +894,7 @@ class Builder extends BuilderAbstract
public function execute()
{
$sth = $this->connection->con->prepare($this->toSQL());
$sth = $this->connection->con->prepare($this->toSql());
$sth->execute();
return $sth;

View File

@ -69,8 +69,9 @@ class ClassicalDecomposition
private function computeSeasonalComponent() : array
{
$seasonalComponent = [];
$count = count($this->data);
for ($i = 0; $i < $this->orderSize; $i++) {
for ($i = 0; $i < $this->dataSize; $i++) {
$temp = [];
for ($j = $i * $this->order; $j < $count; $j += $this->order) {