dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SpecialNewpages: add $attribs['class'] immediately before creating <li>
[lhc/web/wiklou.git]
/
includes
/
libs
/
MappedIterator.php
diff --git
a/includes/libs/MappedIterator.php
b/includes/libs/MappedIterator.php
index
7fdde8a
..
d60af34
100644
(file)
--- a/
includes/libs/MappedIterator.php
+++ b/
includes/libs/MappedIterator.php
@@
-18,7
+18,6
@@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @author Aaron Schulz
*/
/**
*/
/**
@@
-32,7
+31,7
@@
class MappedIterator extends FilterIterator {
/** @var callable */
protected $aCallback;
/** @var array */
/** @var callable */
protected $aCallback;
/** @var array */
- protected $cache =
array()
;
+ protected $cache =
[]
;
protected $rewound = false; // boolean; whether rewind() has been called
protected $rewound = false; // boolean; whether rewind() has been called
@@
-51,7
+50,7
@@
class MappedIterator extends FilterIterator {
* @param array $options Options map (includes "accept") (since 1.22)
* @throws UnexpectedValueException
*/
* @param array $options Options map (includes "accept") (since 1.22)
* @throws UnexpectedValueException
*/
- public function __construct( $iter, $vCallback, array $options =
array()
) {
+ public function __construct( $iter, $vCallback, array $options =
[]
) {
if ( is_array( $iter ) ) {
$baseIterator = new ArrayIterator( $iter );
} elseif ( $iter instanceof Iterator ) {
if ( is_array( $iter ) ) {
$baseIterator = new ArrayIterator( $iter );
} elseif ( $iter instanceof Iterator ) {
@@
-65,13
+64,13
@@
class MappedIterator extends FilterIterator {
}
public function next() {
}
public function next() {
- $this->cache =
array()
;
+ $this->cache =
[]
;
parent::next();
}
public function rewind() {
$this->rewound = true;
parent::next();
}
public function rewind() {
$this->rewound = true;
- $this->cache =
array()
;
+ $this->cache =
[]
;
parent::rewind();
}
parent::rewind();
}