@@ -75,7 +75,7 @@ |
||
75 | 75 | * @return int |
76 | 76 | */ |
77 | 77 | protected function fact($n, $total = 1) { |
78 | - return ($n < 2) ? $total : $this->fact($n-1, $total * $n); |
|
78 | + return ($n < 2) ? $total : $this->fact($n - 1, $total * $n); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | } |
82 | 82 | \ No newline at end of file |
@@ -59,8 +59,7 @@ |
||
59 | 59 | public function next() { |
60 | 60 | if ($this->_next()) { |
61 | 61 | $this->pos++; |
62 | - } |
|
63 | - else { |
|
62 | + } else { |
|
64 | 63 | $this->pos = -1; |
65 | 64 | } |
66 | 65 | } |
@@ -59,8 +59,7 @@ |
||
59 | 59 | public function next() { |
60 | 60 | if ($this->_next()) { |
61 | 61 | $this->pos++; |
62 | - } |
|
63 | - else { |
|
62 | + } else { |
|
64 | 63 | $this->pos = -1; |
65 | 64 | } |
66 | 65 | } |