@@ -149,7 +149,7 @@ |
||
149 | 149 | throw new UnderflowException(); |
150 | 150 | } |
151 | 151 | |
152 | - return $this->array[ count($this) - 1]; |
|
152 | + return $this->array[count($this) - 1]; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
@@ -239,8 +239,12 @@ |
||
239 | 239 | { |
240 | 240 | $n = count($this); |
241 | 241 | |
242 | - if ($n < 2) return 0; |
|
243 | - if ($r < 0) return $n - (abs($r) % $n); |
|
242 | + if ($n < 2) { |
|
243 | + return 0; |
|
244 | + } |
|
245 | + if ($r < 0) { |
|
246 | + return $n - (abs($r) % $n); |
|
247 | + } |
|
244 | 248 | |
245 | 249 | return $r % $n; |
246 | 250 | } |