@@ -17,7 +17,7 @@ |
||
17 | 17 | * |
18 | 18 | * @link http://php.net/manual/class.countable.php |
19 | 19 | */ |
20 | -trait CountableTrait{ |
|
20 | +trait CountableTrait { |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @var array |
@@ -21,19 +21,19 @@ |
||
21 | 21 | * |
22 | 22 | * @link http://php.net/manual/class.seekableiterator.php |
23 | 23 | */ |
24 | -trait SeekableIteratorTrait{ |
|
24 | +trait SeekableIteratorTrait { |
|
25 | 25 | use IteratorTrait; |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @link http://php.net/manual/seekableiterator.seek.php |
29 | 29 | * @inheritdoc |
30 | 30 | */ |
31 | - public function seek($pos){ |
|
31 | + public function seek($pos) { |
|
32 | 32 | $this->rewind(); |
33 | 33 | |
34 | - for( ; $this->offset < $pos; ){ |
|
34 | + for (; $this->offset < $pos;) { |
|
35 | 35 | |
36 | - if(!next($this->array)) { |
|
36 | + if (!next($this->array)) { |
|
37 | 37 | throw new OutOfBoundsException('invalid seek position: '.$pos); |
38 | 38 | } |
39 | 39 |