Skip to content

Commit

Permalink
Fix mistake with discrete time
Browse files Browse the repository at this point in the history
  • Loading branch information
kleninmaxim committed May 18, 2022
1 parent 5d0b7b2 commit c5fad1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DiscreteTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ public function proof(): bool

$var = end($var);

if (!isset($this->previous) || (in_array($var, [1, 3, 5, 7, 9]) && $this->previous != $var))
if (!isset($this->previous) || (in_array($var, [1, 3, 5, 7, 9]) && $this->previous != $var)) {

$this->previous = $var;

return true;

}

return false;

}
Expand Down

0 comments on commit c5fad1e

Please sign in to comment.