}
if ( is_null( $resultPageSet ) ) {
- $a = [ 'pageid' => intval( $row->page_id ) ];
+ $a = [ 'pageid' => (int)$row->page_id ];
ApiQueryBase::addTitleInfo( $a, $t );
if ( $row->page_is_redirect ) {
$a['redirect'] = true;
}
if ( is_null( $resultPageSet ) ) {
- $a['pageid'] = intval( $row->page_id );
+ $a['pageid'] = (int)$row->page_id;
ApiQueryBase::addTitleInfo( $a, Title::makeTitle( $row->page_namespace, $row->page_title ) );
if ( $row->page_is_redirect ) {
$a['redirect'] = true;
$this->params['limit'] = $this->getMain()->canApiHighLimits() ? $botMax : $userMax;
$result->addParsedLimit( $this->getModuleName(), $this->params['limit'] );
} else {
- $this->params['limit'] = intval( $this->params['limit'] );
+ $this->params['limit'] = (int)$this->params['limit'];
$this->validateLimit( 'limit', $this->params['limit'], 1, $userMax, $botMax );
}
if ( is_null( $resultPageSet ) ) {
// Try to add the result data in one go and pray that it fits
$code = $this->bl_code;
- $data = array_map( function ( $arr ) use ( $result, $code ) {
+ $data = array_map( function ( $arr ) use ( $code ) {
if ( isset( $arr['redirlinks'] ) ) {
$arr['redirlinks'] = array_values( $arr['redirlinks'] );
ApiResult::setIndexedTagName( $arr['redirlinks'], $code );