* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @author Aaron Schulz
*/
/**
/** @var callable */
protected $aCallback;
/** @var array */
- protected $cache = array();
+ protected $cache = [];
protected $rewound = false; // boolean; whether rewind() has been called
* @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 ) {
}
public function next() {
- $this->cache = array();
+ $this->cache = [];
parent::next();
}
public function rewind() {
$this->rewound = true;
- $this->cache = array();
+ $this->cache = [];
parent::rewind();
}