public function getNextPageURI(string $group = 'default', bool $returnObject = false)
	{
		$this->ensureGroup($group);

		$last = $this->getLastPage($group);
		$curr = $this->getCurrentPage($group);
		$page = null;

		if (! empty($last) && ! empty($curr) && $last === $curr)
		{
			return null;
		}

		if ($last > $curr)
		{
			$page = $curr + 1;
		}

		return $this->getPageURI($page, $group, $returnObject);
	}
public function getNextPageURI(string $group = 'default', bool $returnObject = false)
	{
		$this->ensureGroup($group);

		$last = $this->getLastPage($group);
		$curr = $this->getCurrentPage($group);
		$page = null;

		if (! empty($last) && ! empty($curr) && $last === $curr)
		{
			return null;
		}

		if ($last > $curr)
		{
			$page = $curr + 1;
		}

		return $this->getPageURI($page, $group, $returnObject);
	}
public function getNextPageURI ( string $ group = 'default' , bool $ returnObject = false ) { $ this -> ensureGroup ( $ group ) ; $ last = $ this -> getLastPage ( $ group ) ; $ curr = $ this -> getCurrentPage ( $ group ) ; $ page = null ; if ( ! empty ( $ last ) && ! empty ( $ curr ) && $ last === $ curr ) { return null ; } if ( $ last > $ curr ) { $ page = $ curr + 1 ; } return $ this -> getPageURI ( $ page , $ group , $ returnObject ) ; }
Returns the full URI to the next page of results, or null.

@param string  $group
@param boolean $returnObject

@return string|null
Returns the full URI to the next page of results or null .