$this->params = $this->extractRequestParams();
if ( $this->params['continue'] ) {
- $continueValue = intval( $this->params['continue'] );
+ $continueValue = (int)$this->params['continue'];
$this->dieContinueUsageIf( strval( $continueValue ) !== $this->params['continue'] );
$filteredPages = [];
foreach ( $pages as $id => $page ) {
$pages = $filteredPages;
}
- if ( !count( $pages ) ) {
+ if ( $pages === [] ) {
# Nothing to do
return;
}